{"action":"created","issue":{"url":"https://api.github.com/repos/mbostock/d3/issues/1420","labels_url":"https://api.github.com/repos/mbostock/d3/issues/1420/labels{/name}","comments_url":"https://api.github.com/repos/mbostock/d3/issues/1420/comments","events_url":"https://api.github.com/repos/mbostock/d3/issues/1420/events","html_url":"https://github.com/mbostock/d3/issues/1420","id":17155163,"number":1420,"title":"d3.scale.log(), 0 in domain","user":{"login":"fuzzer89","id":1573907,"avatar_url":"https://avatars.githubusercontent.com/u/1573907?v=3","gravatar_id":"","url":"https://api.github.com/users/fuzzer89","html_url":"https://github.com/fuzzer89","followers_url":"https://api.github.com/users/fuzzer89/followers","following_url":"https://api.github.com/users/fuzzer89/following{/other_user}","gists_url":"https://api.github.com/users/fuzzer89/gists{/gist_id}","starred_url":"https://api.github.com/users/fuzzer89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fuzzer89/subscriptions","organizations_url":"https://api.github.com/users/fuzzer89/orgs","repos_url":"https://api.github.com/users/fuzzer89/repos","events_url":"https://api.github.com/users/fuzzer89/events{/privacy}","received_events_url":"https://api.github.com/users/fuzzer89/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mbostock/d3/labels/bug","name":"bug","color":"d62728"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mbostock/d3/milestones/26","html_url":"https://github.com/mbostock/d3/milestones/3.2.x","labels_url":"https://api.github.com/repos/mbostock/d3/milestones/26/labels","id":345190,"number":26,"title":"3.2.x","description":"","creator":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":65,"state":"closed","created_at":"2013-05-30T21:24:47Z","updated_at":"2013-08-22T08:25:21Z","due_on":null,"closed_at":"2013-08-22T08:25:21Z"},"comments":16,"created_at":"2013-07-24T13:05:56Z","updated_at":"2015-08-18T22:36:29Z","closed_at":"2013-08-01T14:41:14Z","body":"My first bug-report ever so bear with me!\r\n\r\nThis concerns d3.scale.log() with a value of zero in the domain.\r\n\r\nWhen the input domain contain 0 the javascipt-engine will crash, due to calling log(0). Since log(0) is mathematically undefined, it would be nice if d3 handled this special case instead of causing a total crash.\r\n\r\nUsing: Version 3.2.7"},"comment":{"url":"https://api.github.com/repos/mbostock/d3/issues/comments/132376673","html_url":"https://github.com/mbostock/d3/issues/1420#issuecomment-132376673","issue_url":"https://api.github.com/repos/mbostock/d3/issues/1420","id":132376673,"user":{"login":"angieskazka","id":3648190,"avatar_url":"https://avatars.githubusercontent.com/u/3648190?v=3","gravatar_id":"","url":"https://api.github.com/users/angieskazka","html_url":"https://github.com/angieskazka","followers_url":"https://api.github.com/users/angieskazka/followers","following_url":"https://api.github.com/users/angieskazka/following{/other_user}","gists_url":"https://api.github.com/users/angieskazka/gists{/gist_id}","starred_url":"https://api.github.com/users/angieskazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angieskazka/subscriptions","organizations_url":"https://api.github.com/users/angieskazka/orgs","repos_url":"https://api.github.com/users/angieskazka/repos","events_url":"https://api.github.com/users/angieskazka/events{/privacy}","received_events_url":"https://api.github.com/users/angieskazka/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T22:36:29Z","updated_at":"2015-08-18T22:36:29Z","body":"@kylebrandt yes, i did make it work!\r\nsee the demo here: http://static.gapminderdev.org/vizabi/feature/axis-labeler/preview_pages/_examples/axis-labeler.html\r\n\r\nUse [Q] and [E] to browse through examples of how it works with different input domains.\r\n\r\nThe updated code is here:\r\nhttps://github.com/Gapminder/vizabi/blob/develop/src/plugins/d3.genericLogScale.js\r\n\r\nalso you might find this to be useful:\r\nhttps://github.com/Gapminder/vizabi/blob/develop/src/plugins/d3.axisWithLabelPicker.js\r\n\r\nsorry for lack of documentation, it's still work in progress\r\nplease PM me if anything is unclear\r\n\r\n\r\n"}}