{"action":"closed","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/1932","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1932/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1932/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1932/events","html_url":"https://github.com/nnnick/Chart.js/issues/1932","id":128416576,"number":1932,"title":"Canvas size is decided by its wrapper div element but not by its own width and height?","user":{"login":"counterall","id":8428231,"avatar_url":"https://avatars.githubusercontent.com/u/8428231?v=3","gravatar_id":"","url":"https://api.github.com/users/counterall","html_url":"https://github.com/counterall","followers_url":"https://api.github.com/users/counterall/followers","following_url":"https://api.github.com/users/counterall/following{/other_user}","gists_url":"https://api.github.com/users/counterall/gists{/gist_id}","starred_url":"https://api.github.com/users/counterall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/counterall/subscriptions","organizations_url":"https://api.github.com/users/counterall/orgs","repos_url":"https://api.github.com/users/counterall/repos","events_url":"https://api.github.com/users/counterall/events{/privacy}","received_events_url":"https://api.github.com/users/counterall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nnnick/Chart.js/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/nnnick/Chart.js/labels/v2.x","name":"v2.x","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-24T18:47:36Z","updated_at":"2016-01-26T21:50:08Z","closed_at":"2016-01-26T21:50:08Z","body":"Hi, \r\n\r\nI just updated to 2.x from 1.0.2 during this weekend, so excited to find out much more nice features yet still found two main questions: \r\n* chart does not show animation process automatically when launched in browser, e.g. the rotation animation of Pie chart. I checked the 2.x documentation, did not find right place to configure so.\r\n* the canvas size is totally decided by its wrapper element, size attributes of canvas itself do not work at all, e.g. if no width is set for wrapper element, the canvas will be browser-wide regardless of its own width and height.\r\n\r\nMy environment is Mac OS X Ei Capitan, and these two issues are browser-independent.\r\n\r\nThanks for your time!\r\n"}}