payload: {"action":"created","issue":{"url":"https://api.github.com/repos/plouc/nivo/issues/655","repository_url":"https://api.github.com/repos/plouc/nivo","labels_url":"https://api.github.com/repos/plouc/nivo/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/plouc/nivo/issues/655/comments","events_url":"https://api.github.com/repos/plouc/nivo/issues/655/events","html_url":"https://github.com/plouc/nivo/issues/655","id":476140331,"node_id":"MDU6SXNzdWU0NzYxNDAzMzE=","number":655,"title":"Line xScale with time type not adding ticks as expected","user":{"login":"ConnorHome","id":1759352,"node_id":"MDQ6VXNlcjE3NTkzNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1759352?v=4","gravatar_id":"","url":"https://api.github.com/users/ConnorHome","html_url":"https://github.com/ConnorHome","followers_url":"https://api.github.com/users/ConnorHome/followers","following_url":"https://api.github.com/users/ConnorHome/following{/other_user}","gists_url":"https://api.github.com/users/ConnorHome/gists{/gist_id}","starred_url":"https://api.github.com/users/ConnorHome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConnorHome/subscriptions","organizations_url":"https://api.github.com/users/ConnorHome/orgs","repos_url":"https://api.github.com/users/ConnorHome/repos","events_url":"https://api.github.com/users/ConnorHome/events{/privacy}","received_events_url":"https://api.github.com/users/ConnorHome/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-08-02T11:47:48Z","updated_at":"2019-08-02T14:05:07Z","closed_at":null,"author_association":"NONE","body":"**Describe/explain the bug**\r\nWhen using `<Line xScale={{ type: 'time', precision: 'day' }} />` the ticks on the x axis are added in weird positions. I have set the axisBottom tickValues to be the length of my data array which may be an issue but even if I change it to be 10 the ticks are still in strange positions.\r\n\r\nIn the example below I have 2 values that I want to plot on the graph. Despite being 3 days apart, even if I set the tickValues to be 10 I appear to get duplicate ticks but no tick on the last result in the data.\r\n\r\n**To Reproduce**\r\nhttps://codesandbox.io/embed/mystifying-banzai-hfgie\r\n\r\n**Expected behavior**\r\nI would always expect the values provided in my data to have a tick (my array is already pre-filtered so it will only ever deliver one score per day).\r\n\r\nIn the example provided I would expect there to be a `Aug 02` tick.\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: Mac OSX\r\n - Browser: Chrome\r\n - Version: 75\r\n"},"comment":{"url":"https://api.github.com/repos/plouc/nivo/issues/comments/517713409","html_url":"https://github.com/plouc/nivo/issues/655#issuecomment-517713409","issue_url":"https://api.github.com/repos/plouc/nivo/issues/655","id":517713409,"node_id":"MDEyOklzc3VlQ29tbWVudDUxNzcxMzQwOQ==","user":{"login":"wyze","id":186971,"node_id":"MDQ6VXNlcjE4Njk3MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/186971?v=4","gravatar_id":"","url":"https://api.github.com/users/wyze","html_url":"https://github.com/wyze","followers_url":"https://api.github.com/users/wyze/followers","following_url":"https://api.github.com/users/wyze/following{/other_user}","gists_url":"https://api.github.com/users/wyze/gists{/gist_id}","starred_url":"https://api.github.com/users/wyze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyze/subscriptions","organizations_url":"https://api.github.com/users/wyze/orgs","repos_url":"https://api.github.com/users/wyze/repos","events_url":"https://api.github.com/users/wyze/events{/privacy}","received_events_url":"https://api.github.com/users/wyze/received_events","type":"User","site_admin":false},"created_at":"2019-08-02T14:05:07Z","updated_at":"2019-08-02T14:05:07Z","author_association":"CONTRIBUTOR","body":"I think the problem is now there is a decent gap in your data, but you tell nivo that you only want 2 tick values, so it does exactly that.\r\n\r\nI have a similar graph where I had to do something custom based on the data length because nivo was being crazy with it's tick values.\r\n\r\n```ts\r\n  const dataLength = data[0].data.length\r\n  const tickValues =\r\n    dataLength < 5\r\n      ? data[0].data.map(({ x }) => new Date(x, 0))\r\n      : `every ${Math.round(dataLength / 10)} year`\r\n```\r\n\r\nMy data is on year instead of day, but it would be similar. I noticed if there was less than 5 data points it would generate points that didn't make sense, so I passed points from my data."}}
other: {"actor":{"display_login":"wyze"}}