{"action":"opened","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/932","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/932/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/932/events","html_url":"https://github.com/nnnick/Chart.js/issues/932","id":57385397,"number":932,"title":"Requested Functionality","user":{"login":"kpkeenan","id":7246093,"avatar_url":"https://avatars.githubusercontent.com/u/7246093?v=3","gravatar_id":"","url":"https://api.github.com/users/kpkeenan","html_url":"https://github.com/kpkeenan","followers_url":"https://api.github.com/users/kpkeenan/followers","following_url":"https://api.github.com/users/kpkeenan/following{/other_user}","gists_url":"https://api.github.com/users/kpkeenan/gists{/gist_id}","starred_url":"https://api.github.com/users/kpkeenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpkeenan/subscriptions","organizations_url":"https://api.github.com/users/kpkeenan/orgs","repos_url":"https://api.github.com/users/kpkeenan/repos","events_url":"https://api.github.com/users/kpkeenan/events{/privacy}","received_events_url":"https://api.github.com/users/kpkeenan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-11T22:10:43Z","updated_at":"2015-02-11T22:10:43Z","closed_at":null,"body":"This is more of a request, than an issue. Long story short, I've built a dashboard with this framework. The users requested that if a label has absolutely 0 data across all data sets, that THAT label be excluded from the final object.\r\n\r\nFor example...\r\nvar test = {\r\nlabels:[emptyLabel, labelOne, labelTwo],\r\ndatasets:[\r\n{\r\nlabel: First dataset,\r\ndata:[4,1,0]\r\n},\r\n{\r\nlabel: First dataset,\r\ndata:[7,1,0]\r\n}\r\n]\r\n}\r\nInstead of showing the \"emptyLabels\" data in the resulting graph, they would rather not see it at all. Can I request this sort of functionality? Looking at the docs, I see there is a \"removeData()\" method, but that just removes the very FIRST labels data. I've implemented a pretty nasty function with a bunch of for loops to do this, but it takes time and  I was wondering if there would be a cleaner way. Thanks!"}}