{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues/5","repository_url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels","labels_url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues/5/comments","events_url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues/5/events","html_url":"https://github.com/chartjs/chartjs-plugin-datalabels/issues/5","id":256680110,"number":5,"title":"Cant use this plugin with angular-chart.js","user":{"login":"Sadi-1992","id":24457336,"avatar_url":"https://avatars2.githubusercontent.com/u/24457336?v=4","gravatar_id":"","url":"https://api.github.com/users/Sadi-1992","html_url":"https://github.com/Sadi-1992","followers_url":"https://api.github.com/users/Sadi-1992/followers","following_url":"https://api.github.com/users/Sadi-1992/following{/other_user}","gists_url":"https://api.github.com/users/Sadi-1992/gists{/gist_id}","starred_url":"https://api.github.com/users/Sadi-1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sadi-1992/subscriptions","organizations_url":"https://api.github.com/users/Sadi-1992/orgs","repos_url":"https://api.github.com/users/Sadi-1992/repos","events_url":"https://api.github.com/users/Sadi-1992/events{/privacy}","received_events_url":"https://api.github.com/users/Sadi-1992/received_events","type":"User","site_admin":false},"labels":[{"id":651940341,"url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/labels/support","name":"support","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-11T12:11:08Z","updated_at":"2017-09-11T12:18:07Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use this plugin with [angular-chart.js](http://jtblin.github.io/angular-chart.js/) but the datalabels are not showing up.\r\nI've added \r\n\r\n```\r\nplugins: {\r\n          datalabels: {\r\n            color: 'white',\r\n            display: function(context) {\r\n              return context.dataset.data[context.dataIndex] > 15;\r\n            },\r\n            font: {\r\n              weight: 'bold'\r\n            },\r\n            formatter: Math.round\r\n          }\r\n        }\r\n```\r\nto the options using the 'chart-options' directive and `datalabels: {align: 'end', anchor: 'start'}` to the datasets using the 'chart-dataset-override' directive.\r\n\r\nBut its not working. What am i doing wrong?"},"comment":{"url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues/comments/328511475","html_url":"https://github.com/chartjs/chartjs-plugin-datalabels/issues/5#issuecomment-328511475","issue_url":"https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues/5","id":328511475,"user":{"login":"simonbrunel","id":3874900,"avatar_url":"https://avatars2.githubusercontent.com/u/3874900?v=4","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":"2017-09-11T12:18:07Z","updated_at":"2017-09-11T12:18:07Z","author_association":"OWNER","body":"The syntax looks good, what version of Chart.js are you using? (this plugin requires [Chart.js 2.7.0](/chartjs/Chart.js/releases/tag/v2.7.0))"}}
{"actor":{"display_login":"simonbrunel"}}