{"action":"created","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/521","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/521/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/521/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/521/events","html_url":"https://github.com/nnnick/Chart.js/pull/521","id":39601524,"number":521,"title":"showXLabels - Option to display specified number of labels on X-Axis","user":{"login":"hay-wire","id":2913409,"avatar_url":"https://avatars.githubusercontent.com/u/2913409?v=3","gravatar_id":"","url":"https://api.github.com/users/hay-wire","html_url":"https://github.com/hay-wire","followers_url":"https://api.github.com/users/hay-wire/followers","following_url":"https://api.github.com/users/hay-wire/following{/other_user}","gists_url":"https://api.github.com/users/hay-wire/gists{/gist_id}","starred_url":"https://api.github.com/users/hay-wire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hay-wire/subscriptions","organizations_url":"https://api.github.com/users/hay-wire/orgs","repos_url":"https://api.github.com/users/hay-wire/repos","events_url":"https://api.github.com/users/hay-wire/events{/privacy}","received_events_url":"https://api.github.com/users/hay-wire/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nnnick/Chart.js/milestones/2","html_url":"https://github.com/nnnick/Chart.js/milestones/Future","labels_url":"https://api.github.com/repos/nnnick/Chart.js/milestones/2/labels","id":917790,"number":2,"title":"Future","description":"These items are good enough that someone with project access cared to put them into this milestone, but not enough to put them into the NEXT milestone.","creator":{"login":"derekperkins","id":3588778,"avatar_url":"https://avatars.githubusercontent.com/u/3588778?v=3","gravatar_id":"","url":"https://api.github.com/users/derekperkins","html_url":"https://github.com/derekperkins","followers_url":"https://api.github.com/users/derekperkins/followers","following_url":"https://api.github.com/users/derekperkins/following{/other_user}","gists_url":"https://api.github.com/users/derekperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/derekperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekperkins/subscriptions","organizations_url":"https://api.github.com/users/derekperkins/orgs","repos_url":"https://api.github.com/users/derekperkins/repos","events_url":"https://api.github.com/users/derekperkins/events{/privacy}","received_events_url":"https://api.github.com/users/derekperkins/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":40,"state":"open","created_at":"2014-12-30T17:30:46Z","updated_at":"2015-09-21T22:02:20Z","due_on":null,"closed_at":null},"comments":59,"created_at":"2014-08-06T08:53:26Z","updated_at":"2015-10-13T15:54:29Z","closed_at":"2015-03-01T07:39:08Z","pull_request":{"url":"https://api.github.com/repos/nnnick/Chart.js/pulls/521","html_url":"https://github.com/nnnick/Chart.js/pull/521","diff_url":"https://github.com/nnnick/Chart.js/pull/521.diff","patch_url":"https://github.com/nnnick/Chart.js/pull/521.patch"},"body":"**Update** : Refer updated PR here: https://github.com/nnnick/Chart.js/pull/897\r\n\r\n---\r\n\r\n**Original** :\r\n\r\nApplicable to bar chart and line chart.\r\n\r\nUser can now pass a { showXLabels: 10 } to display only 10 labels (actual displayed labels count might be a bit different depending on the number of total labels present on x axis, but it will still remain close to 10 however)\r\n\r\nHelps a lot when there is a very large amount of data. Earlier, the graph used to look devastated due to x axis labels drawn over each other in the cramped space. With showXLabels, user now has the control to reduce the number of labels to whatever number of labels fit good into the space available to him.\r\n\r\nPlease see the attached images for a comparison. the second graph has been passed { showXLabels: 10 } into option.\r\n\r\n![err-graph](https://cloud.githubusercontent.com/assets/2913409/3824433/f1cc7d2a-1d46-11e4-89e9-d55261ff3c46.png)\r\n![great-graph](https://cloud.githubusercontent.com/assets/2913409/3824434/f1cf66ca-1d46-11e4-8a32-e91a641528d3.png)\r\n"},"comment":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/comments/147758084","html_url":"https://github.com/nnnick/Chart.js/pull/521#issuecomment-147758084","issue_url":"https://api.github.com/repos/nnnick/Chart.js/issues/521","id":147758084,"user":{"login":"javierbyte","id":2009676,"avatar_url":"https://avatars.githubusercontent.com/u/2009676?v=3","gravatar_id":"","url":"https://api.github.com/users/javierbyte","html_url":"https://github.com/javierbyte","followers_url":"https://api.github.com/users/javierbyte/followers","following_url":"https://api.github.com/users/javierbyte/following{/other_user}","gists_url":"https://api.github.com/users/javierbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/javierbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javierbyte/subscriptions","organizations_url":"https://api.github.com/users/javierbyte/orgs","repos_url":"https://api.github.com/users/javierbyte/repos","events_url":"https://api.github.com/users/javierbyte/events{/privacy}","received_events_url":"https://api.github.com/users/javierbyte/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T15:54:29Z","updated_at":"2015-10-13T15:54:29Z","body":"+1"}}