{"action":"created","issue":{"url":"https://api.github.com/repos/andredumas/techan.js/issues/56","labels_url":"https://api.github.com/repos/andredumas/techan.js/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/andredumas/techan.js/issues/56/comments","events_url":"https://api.github.com/repos/andredumas/techan.js/issues/56/events","html_url":"https://github.com/andredumas/techan.js/issues/56","id":59848276,"number":56,"title":"financetime corrupted?","user":{"login":"albertosantini","id":328179,"avatar_url":"https://avatars.githubusercontent.com/u/328179?v=3","gravatar_id":"","url":"https://api.github.com/users/albertosantini","html_url":"https://github.com/albertosantini","followers_url":"https://api.github.com/users/albertosantini/followers","following_url":"https://api.github.com/users/albertosantini/following{/other_user}","gists_url":"https://api.github.com/users/albertosantini/gists{/gist_id}","starred_url":"https://api.github.com/users/albertosantini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertosantini/subscriptions","organizations_url":"https://api.github.com/users/albertosantini/orgs","repos_url":"https://api.github.com/users/albertosantini/repos","events_url":"https://api.github.com/users/albertosantini/events{/privacy}","received_events_url":"https://api.github.com/users/albertosantini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-04T19:27:28Z","updated_at":"2015-03-17T16:06:14Z","closed_at":"2015-03-11T12:32:00Z","body":"Between 5pm and `7pm`, there is not `6pm`, but `:05`\r\nThe same after `7pm`, there is `:16`\r\n\r\nIt is a feed graph and those glitches happen during the feeding, not with the initial data.\r\n\r\nThe crosshair with the annotation displays correctly the date.\r\n\r\nAny idea?\r\n\r\nThe reference code (quite similar to your feed example):\r\nhttps://github.com/albertosantini/argo/blob/master/src/client/app/components/charts.directive.js\r\n\r\n![image](https://cloud.githubusercontent.com/assets/328179/6491249/37287d64-c2ac-11e4-97be-8b125ed44943.png)"},"comment":{"url":"https://api.github.com/repos/andredumas/techan.js/issues/comments/82436278","html_url":"https://github.com/andredumas/techan.js/issues/56#issuecomment-82436278","issue_url":"https://api.github.com/repos/andredumas/techan.js/issues/56","id":82436278,"user":{"login":"albertosantini","id":328179,"avatar_url":"https://avatars.githubusercontent.com/u/328179?v=3","gravatar_id":"","url":"https://api.github.com/users/albertosantini","html_url":"https://github.com/albertosantini","followers_url":"https://api.github.com/users/albertosantini/followers","following_url":"https://api.github.com/users/albertosantini/following{/other_user}","gists_url":"https://api.github.com/users/albertosantini/gists{/gist_id}","starred_url":"https://api.github.com/users/albertosantini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertosantini/subscriptions","organizations_url":"https://api.github.com/users/albertosantini/orgs","repos_url":"https://api.github.com/users/albertosantini/repos","events_url":"https://api.github.com/users/albertosantini/events{/privacy}","received_events_url":"https://api.github.com/users/albertosantini/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T16:06:14Z","updated_at":"2015-03-17T16:06:14Z","body":"Indeed rounding the date properly resolved my use case.\r\n```\r\n...\r\n                if (granularity === \"S5\") {\r\n                    coeff = 1000 * 5;\r\n                } else if (granularity === \"S10\") {\r\n                    coeff = 1000 * 10;\r\n                } else if (granularity === \"S15\") {\r\n                    coeff = 1000 * 15;\r\n                } else if (granularity === \"S30\") {\r\n                    coeff = 1000 * 30;\r\n                } else if (granularity === \"M1\") {\r\n                    coeff = 1000 * 60;\r\n                } else if (granularity === \"M2\") {\r\n                    coeff = 1000 * 60 * 2;\r\n...\r\n                }\r\n\r\n                return Math.floor(now / (coeff)) * coeff;\r\n```"}}