{"action":"created","issue":{"url":"https://api.github.com/repos/fastly/epoch/issues/152","labels_url":"https://api.github.com/repos/fastly/epoch/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/fastly/epoch/issues/152/comments","events_url":"https://api.github.com/repos/fastly/epoch/issues/152/events","html_url":"https://github.com/fastly/epoch/issues/152","id":56562299,"number":152,"title":"Ticks option do not work on Bar chart","user":{"login":"elfenheart","id":4398643,"avatar_url":"https://avatars.githubusercontent.com/u/4398643?v=3","gravatar_id":"","url":"https://api.github.com/users/elfenheart","html_url":"https://github.com/elfenheart","followers_url":"https://api.github.com/users/elfenheart/followers","following_url":"https://api.github.com/users/elfenheart/following{/other_user}","gists_url":"https://api.github.com/users/elfenheart/gists{/gist_id}","starred_url":"https://api.github.com/users/elfenheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfenheart/subscriptions","organizations_url":"https://api.github.com/users/elfenheart/orgs","repos_url":"https://api.github.com/users/elfenheart/repos","events_url":"https://api.github.com/users/elfenheart/events{/privacy}","received_events_url":"https://api.github.com/users/elfenheart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-04T17:50:05Z","updated_at":"2015-03-01T21:41:27Z","closed_at":null,"body":"When I specify the number of Ticks option on a bar chart, it doesn't work. It will still give the ticks for each data points."},"comment":{"url":"https://api.github.com/repos/fastly/epoch/issues/comments/76632629","html_url":"https://github.com/fastly/epoch/issues/152#issuecomment-76632629","issue_url":"https://api.github.com/repos/fastly/epoch/issues/152","id":76632629,"user":{"login":"tmhfr","id":11235734,"avatar_url":"https://avatars.githubusercontent.com/u/11235734?v=3","gravatar_id":"","url":"https://api.github.com/users/tmhfr","html_url":"https://github.com/tmhfr","followers_url":"https://api.github.com/users/tmhfr/followers","following_url":"https://api.github.com/users/tmhfr/following{/other_user}","gists_url":"https://api.github.com/users/tmhfr/gists{/gist_id}","starred_url":"https://api.github.com/users/tmhfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmhfr/subscriptions","organizations_url":"https://api.github.com/users/tmhfr/orgs","repos_url":"https://api.github.com/users/tmhfr/repos","events_url":"https://api.github.com/users/tmhfr/events{/privacy}","received_events_url":"https://api.github.com/users/tmhfr/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T21:41:27Z","updated_at":"2015-03-01T21:41:27Z","body":"This is what I use (within a Twig view):\r\n```\r\n<div id=\"barChart\" class=\"epoch\" style=\"height: 250px\"></div>\r\n\r\n<script>\r\n(function() {\r\n\r\nvar barChartData = [\r\n  { label: \"Series 1\",\r\n   values: [\r\n  {% for eleclogdaydetail in eleclogdaydetails %}\r\n     {x: {{ eleclogdaydetail.daterx | date(\"U\")}}, y: {{ eleclogdaydetail.consumption }}},\r\n  {% endfor %}\r\n   ]\r\n  }\r\n];\r\n\r\n  $('#barChart').epoch({\r\n     type: 'bar',\r\n     data: barChartData,\r\n     axes: ['left', 'bottom'],\r\n     ticks: { left: 5, bottom: 5 },\r\n     tickFormats: { bottom:\r\n       function(d) {\r\n         var date = new Date(d*1000);\r\n\r\n         var date_month  = date.getMonth() + 1;\r\n         var date_day    = date.getDate();\r\n         var date_hour   = date.getHours();\r\n         var date_minute = date.getMinutes();\r\n\r\n         return date_month + '-' + date_day + ' ' + date_hour + ':' + date_minute;\r\n       }\r\n     }\r\n  });\r\n})();\r\n\r\n</script>\r\n```"}}