{"action":"created","issue":{"url":"https://api.github.com/repos/highcharts/highcharts/issues/5437","repository_url":"https://api.github.com/repos/highcharts/highcharts","labels_url":"https://api.github.com/repos/highcharts/highcharts/issues/5437/labels{/name}","comments_url":"https://api.github.com/repos/highcharts/highcharts/issues/5437/comments","events_url":"https://api.github.com/repos/highcharts/highcharts/issues/5437/events","html_url":"https://github.com/highcharts/highcharts/issues/5437","id":162458155,"number":5437,"title":"Ticks are not being aligned with data points on a line graph with xAxis being 'datetime'","user":{"login":"plamens","id":1782459,"avatar_url":"https://avatars.githubusercontent.com/u/1782459?v=3","gravatar_id":"","url":"https://api.github.com/users/plamens","html_url":"https://github.com/plamens","followers_url":"https://api.github.com/users/plamens/followers","following_url":"https://api.github.com/users/plamens/following{/other_user}","gists_url":"https://api.github.com/users/plamens/gists{/gist_id}","starred_url":"https://api.github.com/users/plamens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamens/subscriptions","organizations_url":"https://api.github.com/users/plamens/orgs","repos_url":"https://api.github.com/users/plamens/repos","events_url":"https://api.github.com/users/plamens/events{/privacy}","received_events_url":"https://api.github.com/users/plamens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-27T13:57:27Z","updated_at":"2016-07-12T14:09:48Z","closed_at":null,"body":"We have a line chart with the xAxis being the timestamp and the yAxis - some random value. \r\nThe timestamps of the data points are 20000 ms apart. \r\n\r\n#### Expected behaviour\r\n\r\nAll ticks should be aligned with the data points on the lines (even when zooming in).\r\n\r\n#### Actual behaviour\r\n\r\nThe graph shows the ticks 30000 ms apart, misaligned with the timestamps of the data points.\r\nAlso, zooming on the graph displays ticks 15000 ms apart even though a value of 20000 has been specified as a 'minTickInterval' for the xAxis.\r\n\r\n#### Live demo with steps to reproduce\r\nhttp://jsfiddle.net/jLvax2dz/1/\r\n\r\n\r\n#### Affected browser(s)\r\nWe tested on Firefox and Chrome, but it doesn't appear to be something browser-specific\r\n"},"comment":{"url":"https://api.github.com/repos/highcharts/highcharts/issues/comments/232058937","html_url":"https://github.com/highcharts/highcharts/issues/5437#issuecomment-232058937","issue_url":"https://api.github.com/repos/highcharts/highcharts/issues/5437","id":232058937,"user":{"login":"pawelfus","id":1453926,"avatar_url":"https://avatars.githubusercontent.com/u/1453926?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelfus","html_url":"https://github.com/pawelfus","followers_url":"https://api.github.com/users/pawelfus/followers","following_url":"https://api.github.com/users/pawelfus/following{/other_user}","gists_url":"https://api.github.com/users/pawelfus/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelfus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelfus/subscriptions","organizations_url":"https://api.github.com/users/pawelfus/orgs","repos_url":"https://api.github.com/users/pawelfus/repos","events_url":"https://api.github.com/users/pawelfus/events{/privacy}","received_events_url":"https://api.github.com/users/pawelfus/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T14:09:48Z","updated_at":"2016-07-12T14:09:48Z","body":"Hi @plamens,\r\n\r\nMy apologies for a late reply. I agree it may be tricky to calculate all bounding boxes etc. In that case, you can use [`xAxis.units`](http://api.highcharts.com/highcharts#xAxis.units). For example: http://jsfiddle.net/jLvax2dz/2/"}}
{"actor":{"display_login":"pawelfus"}}