{"action":"created","issue":{"url":"https://api.github.com/repos/victorquinn/chancejs/issues/78","labels_url":"https://api.github.com/repos/victorquinn/chancejs/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/victorquinn/chancejs/issues/78/comments","events_url":"https://api.github.com/repos/victorquinn/chancejs/issues/78/events","html_url":"https://github.com/victorquinn/chancejs/issues/78","id":39751853,"number":78,"title":"Random tree generation?","user":{"login":"Kallin","id":158169,"avatar_url":"https://avatars.githubusercontent.com/u/158169?v=3","gravatar_id":"","url":"https://api.github.com/users/Kallin","html_url":"https://github.com/Kallin","followers_url":"https://api.github.com/users/Kallin/followers","following_url":"https://api.github.com/users/Kallin/following{/other_user}","gists_url":"https://api.github.com/users/Kallin/gists{/gist_id}","starred_url":"https://api.github.com/users/Kallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kallin/subscriptions","organizations_url":"https://api.github.com/users/Kallin/orgs","repos_url":"https://api.github.com/users/Kallin/repos","events_url":"https://api.github.com/users/Kallin/events{/privacy}","received_events_url":"https://api.github.com/users/Kallin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-08-07T18:04:57Z","updated_at":"2015-03-02T15:58:51Z","closed_at":null,"body":"Great looking library!\r\n\r\nI'm building some D3 visualizations, and they require generating random structured data.\r\nHere's one using random trees:\r\n\r\nhttp://codepen.io/Kallin/full/vzgnF/\r\n\r\nI was thinking of encapsulating the generation code into a more generic lib, then saw chance.js and thought maybe it would work well in there. Interested in me making a pull request to add some tree-generation? Could be other structures in the future as I explore more of D3. Let me know, I can try putting together a pull request!"},"comment":{"url":"https://api.github.com/repos/victorquinn/chancejs/issues/comments/76737981","html_url":"https://github.com/victorquinn/chancejs/issues/78#issuecomment-76737981","issue_url":"https://api.github.com/repos/victorquinn/chancejs/issues/78","id":76737981,"user":{"login":"victorquinn","id":660139,"avatar_url":"https://avatars.githubusercontent.com/u/660139?v=3","gravatar_id":"","url":"https://api.github.com/users/victorquinn","html_url":"https://github.com/victorquinn","followers_url":"https://api.github.com/users/victorquinn/followers","following_url":"https://api.github.com/users/victorquinn/following{/other_user}","gists_url":"https://api.github.com/users/victorquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/victorquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorquinn/subscriptions","organizations_url":"https://api.github.com/users/victorquinn/orgs","repos_url":"https://api.github.com/users/victorquinn/repos","events_url":"https://api.github.com/users/victorquinn/events{/privacy}","received_events_url":"https://api.github.com/users/victorquinn/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T15:58:51Z","updated_at":"2015-03-02T15:58:51Z","body":"@Kallin thank you for the kind words about the library! And so sorry on not getting back to you sooner about this. I need to be better at going through the issue queue and cleaning things up/responding in a more timely fashion.\r\n\r\n:+1: to @somejeff 's statement about plugins. I'd love to have a plugins section eventually!\r\n\r\nAs to your question about random, generic trees, the concept is neat though I'd question their usefulness without some more strong pairing to a library like D3 or something. I'm not sure what the data model would look like for a generic tree structure or if it would be of any use to anyone. \r\n\r\nI would be potentially open to its inclusion in Chance if (1) it is rather small codewise as I'm trying to keep the Chance core small and (2) it is generalizable to the point where it's useful to someone.\r\n\r\nHowever, I think both of these will be difficult targets to hit and this is probably a task best left in user space as a Chance mixin or a separate library dependent on Chance."}}