{"action":"created","issue":{"url":"https://api.github.com/repos/jiahuang/d3-timeline/issues/64","labels_url":"https://api.github.com/repos/jiahuang/d3-timeline/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/jiahuang/d3-timeline/issues/64/comments","events_url":"https://api.github.com/repos/jiahuang/d3-timeline/issues/64/events","html_url":"https://github.com/jiahuang/d3-timeline/issues/64","id":90134806,"number":64,"title":"Setting tickValues","user":{"login":"inodb","id":1334004,"avatar_url":"https://avatars.githubusercontent.com/u/1334004?v=3","gravatar_id":"","url":"https://api.github.com/users/inodb","html_url":"https://github.com/inodb","followers_url":"https://api.github.com/users/inodb/followers","following_url":"https://api.github.com/users/inodb/following{/other_user}","gists_url":"https://api.github.com/users/inodb/gists{/gist_id}","starred_url":"https://api.github.com/users/inodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inodb/subscriptions","organizations_url":"https://api.github.com/users/inodb/orgs","repos_url":"https://api.github.com/users/inodb/repos","events_url":"https://api.github.com/users/inodb/events{/privacy}","received_events_url":"https://api.github.com/users/inodb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T15:38:15Z","updated_at":"2015-06-23T13:46:02Z","closed_at":null,"body":"I'd like to use tickValues (https://github.com/mbostock/d3/wiki/SVG-Axes#tickValues) to set specific axis values. Can you recommend a way how to do that?"},"comment":{"url":"https://api.github.com/repos/jiahuang/d3-timeline/issues/comments/114510850","html_url":"https://github.com/jiahuang/d3-timeline/issues/64#issuecomment-114510850","issue_url":"https://api.github.com/repos/jiahuang/d3-timeline/issues/64","id":114510850,"user":{"login":"inodb","id":1334004,"avatar_url":"https://avatars.githubusercontent.com/u/1334004?v=3","gravatar_id":"","url":"https://api.github.com/users/inodb","html_url":"https://github.com/inodb","followers_url":"https://api.github.com/users/inodb/followers","following_url":"https://api.github.com/users/inodb/following{/other_user}","gists_url":"https://api.github.com/users/inodb/gists{/gist_id}","starred_url":"https://api.github.com/users/inodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inodb/subscriptions","organizations_url":"https://api.github.com/users/inodb/orgs","repos_url":"https://api.github.com/users/inodb/repos","events_url":"https://api.github.com/users/inodb/events{/privacy}","received_events_url":"https://api.github.com/users/inodb/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T13:46:02Z","updated_at":"2015-06-23T13:46:02Z","body":"I've solved it by adding an extra option to tickFormat:\r\n```javascript\r\nvar xAxis = d3.svg.axis()\r\n  .scale(xScale)\r\n  .orient(orient)\r\n  .tickFormat(tickFormat.format)\r\n  .tickSize(tickFormat.tickSize);\r\n  \r\nif (tickFormat.tickValues !== null) {\r\n  xAxis.tickValues(tickFormat.tickValues);\r\n} else {\r\n  xAxis.ticks(tickFormat.numTicks || tickFormat.tickTime, tickFormat.tickInterval);\r\n}\r\n```\r\nWant me to send a PR?"}}