{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/5252","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5252/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5252/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5252/events","html_url":"https://github.com/chartjs/Chart.js/pull/5252","id":295551799,"number":5252,"title":"Measure text size for autoscale when rotated","user":{"login":"teroman","id":34158322,"avatar_url":"https://avatars0.githubusercontent.com/u/34158322?v=4","gravatar_id":"","url":"https://api.github.com/users/teroman","html_url":"https://github.com/teroman","followers_url":"https://api.github.com/users/teroman/followers","following_url":"https://api.github.com/users/teroman/following{/other_user}","gists_url":"https://api.github.com/users/teroman/gists{/gist_id}","starred_url":"https://api.github.com/users/teroman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teroman/subscriptions","organizations_url":"https://api.github.com/users/teroman/orgs","repos_url":"https://api.github.com/users/teroman/repos","events_url":"https://api.github.com/users/teroman/events{/privacy}","received_events_url":"https://api.github.com/users/teroman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-08T15:21:25Z","updated_at":"2018-04-26T11:17:05Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/chartjs/Chart.js/pulls/5252","html_url":"https://github.com/chartjs/Chart.js/pull/5252","diff_url":"https://github.com/chartjs/Chart.js/pull/5252.diff","patch_url":"https://github.com/chartjs/Chart.js/pull/5252.patch"},"body":"Currently this uses the cos() of the rotation to calculate the width of rotated text.\r\ncos(90) = 0 so the text size is thought to be zero, and no labels are skipped.\r\n\r\nAdded a check to use the sin() of the width and use that if greater.\r\nsin(90) = 1, so in this case the text height is used as the width taken of the tick text when drawn."},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/384603511","html_url":"https://github.com/chartjs/Chart.js/pull/5252#issuecomment-384603511","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5252","id":384603511,"user":{"login":"teroman","id":34158322,"avatar_url":"https://avatars0.githubusercontent.com/u/34158322?v=4","gravatar_id":"","url":"https://api.github.com/users/teroman","html_url":"https://github.com/teroman","followers_url":"https://api.github.com/users/teroman/followers","following_url":"https://api.github.com/users/teroman/following{/other_user}","gists_url":"https://api.github.com/users/teroman/gists{/gist_id}","starred_url":"https://api.github.com/users/teroman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teroman/subscriptions","organizations_url":"https://api.github.com/users/teroman/orgs","repos_url":"https://api.github.com/users/teroman/repos","events_url":"https://api.github.com/users/teroman/events{/privacy}","received_events_url":"https://api.github.com/users/teroman/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T11:17:05Z","updated_at":"2018-04-26T11:17:05Z","author_association":"NONE","body":"Thanks @benmccann for the advice, a bit of ssh key tinkering and I got things working."}}
{"actor":{"display_login":"teroman"}}