{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3254","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3254/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3254/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3254/events","html_url":"https://github.com/chartjs/Chart.js/pull/3254","id":174844759,"number":3254,"title":"Suport minDisplayFormat for time scale","user":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-02T20:47:15Z","updated_at":"2016-09-03T17:05:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chartjs/Chart.js/pulls/3254","html_url":"https://github.com/chartjs/Chart.js/pull/3254","diff_url":"https://github.com/chartjs/Chart.js/pull/3254.diff","patch_url":"https://github.com/chartjs/Chart.js/pull/3254.patch"},"body":"When dealing with time-delineated datasets, often we have data for known\r\nintervals of time. For example, we may have a dataset which represents number\r\nof purchases per day:\r\n\r\n```js\r\n{\r\n\tlabels: ['2016-01-01', '2016-01-02', '2016-01-03']\r\n\tdatasets: [\r\n\t\t{\r\n\t\t\tdata: [12, 87, 42]\r\n\t\t}\r\n\t],\r\n\t'...': '...'\r\n}\r\n```\r\n\r\nIn this case, Chart.js will attempt to figure out the best interval to display\r\nthe data, and could pick `hours` as the unit. However, in this case, we would\r\nprefer to just use the `days` interval since our data's granularity can not be\r\nrepresented well with `hours`.\r\n\r\nTo remedy this, this commit adds the `minDisplayFormat` option which allows\r\nusers to (optionally) specify what the minimum display format they would like\r\nto use."},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/244557958","html_url":"https://github.com/chartjs/Chart.js/pull/3254#issuecomment-244557958","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3254","id":244557958,"user":{"login":"simonbrunel","id":3874900,"avatar_url":"https://avatars.githubusercontent.com/u/3874900?v=3","gravatar_id":"","url":"https://api.github.com/users/simonbrunel","html_url":"https://github.com/simonbrunel","followers_url":"https://api.github.com/users/simonbrunel/followers","following_url":"https://api.github.com/users/simonbrunel/following{/other_user}","gists_url":"https://api.github.com/users/simonbrunel/gists{/gist_id}","starred_url":"https://api.github.com/users/simonbrunel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonbrunel/subscriptions","organizations_url":"https://api.github.com/users/simonbrunel/orgs","repos_url":"https://api.github.com/users/simonbrunel/repos","events_url":"https://api.github.com/users/simonbrunel/events{/privacy}","received_events_url":"https://api.github.com/users/simonbrunel/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T17:05:59Z","updated_at":"2016-09-03T17:05:59Z","body":"Looks really good!\r\n\r\nJust a thought about the option name: since `displayFormat` has been deprecated, should we use it in this new option? also the parent option section is `displayFormats`, so a bit redundant. I'm not familiar with the time scale vocabulary, but maybe something like `minUnit`? @etimberg, what do you think?\r\n\r\n@ianks I love your commit messages :)"}}
{"actor":{"display_login":"simonbrunel"}}