{"action":"created","issue":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/244","labels_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/244/comments","events_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/244/events","html_url":"https://github.com/jtblin/angular-chart.js/issues/244","id":117773563,"number":244,"title":"JSON usage","user":{"login":"ahsanbagwan","id":3985087,"avatar_url":"https://avatars.githubusercontent.com/u/3985087?v=3","gravatar_id":"","url":"https://api.github.com/users/ahsanbagwan","html_url":"https://github.com/ahsanbagwan","followers_url":"https://api.github.com/users/ahsanbagwan/followers","following_url":"https://api.github.com/users/ahsanbagwan/following{/other_user}","gists_url":"https://api.github.com/users/ahsanbagwan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahsanbagwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahsanbagwan/subscriptions","organizations_url":"https://api.github.com/users/ahsanbagwan/orgs","repos_url":"https://api.github.com/users/ahsanbagwan/repos","events_url":"https://api.github.com/users/ahsanbagwan/events{/privacy}","received_events_url":"https://api.github.com/users/ahsanbagwan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jtblin/angular-chart.js/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T09:27:52Z","updated_at":"2015-11-23T11:15:33Z","closed_at":"2015-11-23T11:15:33Z","body":"This is a question and not an issue. How do I use this in case of JSON data? \r\n\r\nI have my structure like:\r\n\r\n{data:[[\"2015-05-31\",5.7377049180328],[\"2015-04-30\",5.7851239669421],[\"2015-03-31\",6.2761506276151]]} with thousand of such entries.\r\n\r\nHow do I figure out how to set labels. Is it manual? I'm really confused."},"comment":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/comments/158907404","html_url":"https://github.com/jtblin/angular-chart.js/issues/244#issuecomment-158907404","issue_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/244","id":158907404,"user":{"login":"jtblin","id":1388974,"avatar_url":"https://avatars.githubusercontent.com/u/1388974?v=3","gravatar_id":"","url":"https://api.github.com/users/jtblin","html_url":"https://github.com/jtblin","followers_url":"https://api.github.com/users/jtblin/followers","following_url":"https://api.github.com/users/jtblin/following{/other_user}","gists_url":"https://api.github.com/users/jtblin/gists{/gist_id}","starred_url":"https://api.github.com/users/jtblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtblin/subscriptions","organizations_url":"https://api.github.com/users/jtblin/orgs","repos_url":"https://api.github.com/users/jtblin/repos","events_url":"https://api.github.com/users/jtblin/events{/privacy}","received_events_url":"https://api.github.com/users/jtblin/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T11:15:33Z","updated_at":"2015-11-23T11:15:33Z","body":"As @zurez said, you can use `map` to easily create new arrays from an existing array."}}