{"action":"opened","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3072","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3072/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3072/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3072/events","html_url":"https://github.com/chartjs/Chart.js/issues/3072","id":168641905,"number":3072,"title":"Rounded bar in v2.0","user":{"login":"jiboune","id":6116409,"avatar_url":"https://avatars.githubusercontent.com/u/6116409?v=3","gravatar_id":"","url":"https://api.github.com/users/jiboune","html_url":"https://github.com/jiboune","followers_url":"https://api.github.com/users/jiboune/followers","following_url":"https://api.github.com/users/jiboune/following{/other_user}","gists_url":"https://api.github.com/users/jiboune/gists{/gist_id}","starred_url":"https://api.github.com/users/jiboune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiboune/subscriptions","organizations_url":"https://api.github.com/users/jiboune/orgs","repos_url":"https://api.github.com/users/jiboune/repos","events_url":"https://api.github.com/users/jiboune/events{/privacy}","received_events_url":"https://api.github.com/users/jiboune/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-01T13:09:40Z","updated_at":"2016-08-01T13:09:40Z","closed_at":null,"body":"Hi there, \r\n\r\nFirst thank you for your amazing library. I need to update the library 1.x to 2.0 for a client and i'm stuck on how to extend correctly my bar chart. I need to apply the same rounded effect on the bar which has been made with v1.0.2 . ChartJS syntax is quite different now.\r\n\r\n`\r\n\r\nvar originalBarController = Chart.controllers.bar;\r\nChart.controllers.bar = Chart.controllers.bar.extend({\r\n  draw: function(ease) {\r\n    var i =0;\r\n    originalBarController.prototype.draw.apply(this, arguments);\r\n\r\n    /* write here the change to make to corners rounded */\r\n\r\n     console.log(this.chart); // but no any console log appear\r\n     \r\n  }\r\n\r\n});`\r\n\r\nQ1 : How can I retrieve the dataset -> bars' array from the extend function ? I only found the bar value with **this.chart.chart.config.data.datasets**.\r\nQ2 : How can I perform that ? \r\n\r\nAny advices appreciated!\r\n\r\nJSField : http://jsfiddle.net/0dzp3jxw/"}}
{"actor":{"display_login":"jiboune"}}