{"action":"created","issue":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/93","labels_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/93/comments","events_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/93/events","html_url":"https://github.com/jtblin/angular-chart.js/issues/93","id":67096519,"number":93,"title":"Limit x axis labels","user":{"login":"mikehm","id":8395489,"avatar_url":"https://avatars.githubusercontent.com/u/8395489?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehm","html_url":"https://github.com/mikehm","followers_url":"https://api.github.com/users/mikehm/followers","following_url":"https://api.github.com/users/mikehm/following{/other_user}","gists_url":"https://api.github.com/users/mikehm/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehm/subscriptions","organizations_url":"https://api.github.com/users/mikehm/orgs","repos_url":"https://api.github.com/users/mikehm/repos","events_url":"https://api.github.com/users/mikehm/events{/privacy}","received_events_url":"https://api.github.com/users/mikehm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-08T10:13:52Z","updated_at":"2015-04-10T21:56:49Z","closed_at":null,"body":"Is there an option to limit the number of your x-axis labels to a certain number?. My data is large and when the page is viewed on a smaller screen all the x-labels become stacked over each other.\r\n"},"comment":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/comments/91703619","html_url":"https://github.com/jtblin/angular-chart.js/issues/93#issuecomment-91703619","issue_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/93","id":91703619,"user":{"login":"mikehm","id":8395489,"avatar_url":"https://avatars.githubusercontent.com/u/8395489?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehm","html_url":"https://github.com/mikehm","followers_url":"https://api.github.com/users/mikehm/followers","following_url":"https://api.github.com/users/mikehm/following{/other_user}","gists_url":"https://api.github.com/users/mikehm/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehm/subscriptions","organizations_url":"https://api.github.com/users/mikehm/orgs","repos_url":"https://api.github.com/users/mikehm/repos","events_url":"https://api.github.com/users/mikehm/events{/privacy}","received_events_url":"https://api.github.com/users/mikehm/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T21:56:49Z","updated_at":"2015-04-10T21:56:49Z","body":"Thanks, I instead had to use a for loop to loop over and push the values of my x-axis data into the labels array (while incrementing over the elements of the array (x-axis values) by two or i = i + 2). That removed the odd indexed elements."}}