{"action":"closed","issue":{"url":"https://api.github.com/repos/d3/d3-scale/issues/7","labels_url":"https://api.github.com/repos/d3/d3-scale/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/d3/d3-scale/issues/7/comments","events_url":"https://api.github.com/repos/d3/d3-scale/issues/7/events","html_url":"https://github.com/d3/d3-scale/issues/7","id":93077806,"number":7,"title":"Pass a custom interval to time.ticks?","user":{"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},"labels":[{"url":"https://api.github.com/repos/d3/d3-scale/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":1,"created_at":"2015-07-05T05:13:52Z","updated_at":"2015-07-06T17:10:54Z","closed_at":"2015-07-06T17:10:54Z","body":"Unlike the 3.x time scale, the new time scale.ticks method doesn’t accept a custom time interval. It’d be nice to allow a custom time interval to be passed in. For example, if we want to show every three days regardless of month, we might say:\r\n\r\n```js\r\nvar s = scale.time();\r\ns.ticks(day.filter(function(d) { return day.count(0, d) % 3 === 0; }));\r\n```\r\n\r\nAlthough, not sure interval.filter is the best API for this."}}