{"action":"created","issue":{"url":"https://api.github.com/repos/dc-js/dc.js/issues/791","labels_url":"https://api.github.com/repos/dc-js/dc.js/issues/791/labels{/name}","comments_url":"https://api.github.com/repos/dc-js/dc.js/issues/791/comments","events_url":"https://api.github.com/repos/dc-js/dc.js/issues/791/events","html_url":"https://github.com/dc-js/dc.js/issues/791","id":51744033,"number":791,"title":"x axis not changing on date range change","user":{"login":"gordonwoodhull","id":1366709,"avatar_url":"https://avatars.githubusercontent.com/u/1366709?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwoodhull","html_url":"https://github.com/gordonwoodhull","followers_url":"https://api.github.com/users/gordonwoodhull/followers","following_url":"https://api.github.com/users/gordonwoodhull/following{/other_user}","gists_url":"https://api.github.com/users/gordonwoodhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwoodhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwoodhull/subscriptions","organizations_url":"https://api.github.com/users/gordonwoodhull/orgs","repos_url":"https://api.github.com/users/gordonwoodhull/repos","events_url":"https://api.github.com/users/gordonwoodhull/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwoodhull/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dc-js/dc.js/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dc-js/dc.js/milestones/13","html_url":"https://github.com/dc-js/dc.js/milestones/v2.0","labels_url":"https://api.github.com/repos/dc-js/dc.js/milestones/13/labels","id":416264,"number":13,"title":"v2.0","description":"","creator":{"login":"jrideout","id":197338,"avatar_url":"https://avatars.githubusercontent.com/u/197338?v=3","gravatar_id":"","url":"https://api.github.com/users/jrideout","html_url":"https://github.com/jrideout","followers_url":"https://api.github.com/users/jrideout/followers","following_url":"https://api.github.com/users/jrideout/following{/other_user}","gists_url":"https://api.github.com/users/jrideout/gists{/gist_id}","starred_url":"https://api.github.com/users/jrideout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrideout/subscriptions","organizations_url":"https://api.github.com/users/jrideout/orgs","repos_url":"https://api.github.com/users/jrideout/repos","events_url":"https://api.github.com/users/jrideout/events{/privacy}","received_events_url":"https://api.github.com/users/jrideout/received_events","type":"User","site_admin":false},"open_issues":83,"closed_issues":201,"state":"open","created_at":"2013-08-31T17:39:57Z","updated_at":"2015-06-03T13:56:48Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-12-11T22:00:52Z","updated_at":"2015-06-09T04:01:54Z","closed_at":null,"body":"Perhaps related to #790, in this case it looks like the scale is not changed correctly.\r\nhttp://stackoverflow.com/questions/25710058/dc-js-x-axis-not-changing-on-date-range-change\r\n\r\nIt could be due to the too-complicated domain comparison code which will not work for dates because it uses `!==` (when comparison is not needed at all)."},"comment":{"url":"https://api.github.com/repos/dc-js/dc.js/issues/comments/110216981","html_url":"https://github.com/dc-js/dc.js/issues/791#issuecomment-110216981","issue_url":"https://api.github.com/repos/dc-js/dc.js/issues/791","id":110216981,"user":{"login":"gordonwoodhull","id":1366709,"avatar_url":"https://avatars.githubusercontent.com/u/1366709?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwoodhull","html_url":"https://github.com/gordonwoodhull","followers_url":"https://api.github.com/users/gordonwoodhull/followers","following_url":"https://api.github.com/users/gordonwoodhull/following{/other_user}","gists_url":"https://api.github.com/users/gordonwoodhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwoodhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwoodhull/subscriptions","organizations_url":"https://api.github.com/users/gordonwoodhull/orgs","repos_url":"https://api.github.com/users/gordonwoodhull/repos","events_url":"https://api.github.com/users/gordonwoodhull/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwoodhull/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T04:01:54Z","updated_at":"2015-06-09T04:01:54Z","body":"Thanks @awojtas, I misunderstood this bug the first time around, so your images helped a lot. \r\n\r\nIt turns out that the axes did not respond to a rescale, only to a zoom event or a render. I have fixed this, and also made it unnecessary to call `.rescale()` when setting the x or y scales. (It is still necessary to call rescale when changing just the domain of the scale.)"}}