{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3622","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3622/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3622/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3622/events","html_url":"https://github.com/chartjs/Chart.js/issues/3622","id":190323730,"number":3622,"title":"Question: Data numbers to money","user":{"login":"SylarRuby","id":7381195,"avatar_url":"https://avatars.githubusercontent.com/u/7381195?v=3","gravatar_id":"","url":"https://api.github.com/users/SylarRuby","html_url":"https://github.com/SylarRuby","followers_url":"https://api.github.com/users/SylarRuby/followers","following_url":"https://api.github.com/users/SylarRuby/following{/other_user}","gists_url":"https://api.github.com/users/SylarRuby/gists{/gist_id}","starred_url":"https://api.github.com/users/SylarRuby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylarRuby/subscriptions","organizations_url":"https://api.github.com/users/SylarRuby/orgs","repos_url":"https://api.github.com/users/SylarRuby/repos","events_url":"https://api.github.com/users/SylarRuby/events{/privacy}","received_events_url":"https://api.github.com/users/SylarRuby/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-18T13:50:56Z","updated_at":"2016-11-18T14:57:27Z","closed_at":"2016-11-18T14:57:27Z","body":"Just a question here. My data array is money. I use [accounting.js](https://github.com/openexchangerates/accounting.js) to convert to money.\r\n\r\n```\r\nvar data = {\r\n    labels: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\"],\r\n    datasets: [\r\n        {\r\n            label: \"My First dataset\",\r\n            backgroundColor: [\r\n                'rgba(255, 99, 132, 0.2)',\r\n                'rgba(54, 162, 235, 0.2)',\r\n                'rgba(255, 206, 86, 0.2)',\r\n                'rgba(75, 192, 192, 0.2)',\r\n                'rgba(153, 102, 255, 0.2)',\r\n                'rgba(255, 159, 64, 0.2)'\r\n            ],\r\n            borderColor: [\r\n                'rgba(255,99,132,1)',\r\n                'rgba(54, 162, 235, 1)',\r\n                'rgba(255, 206, 86, 1)',\r\n                'rgba(75, 192, 192, 1)',\r\n                'rgba(153, 102, 255, 1)',\r\n                'rgba(255, 159, 64, 1)'\r\n            ],\r\n            borderWidth: 1,\r\n            data: [65, 59, 80, 81, 56, 55, 40],\r\n        }\r\n    ]\r\n};\r\n```\r\n\r\nLet's focus on the `data` array. I need to convert the numbers to money.\r\n\r\n```\r\nvar a = accounting.formatMoney(65, \"£\", 2, \",\", \".\");\r\nvar b = accounting.formatMoney(59, \"£\", 2, \",\", \".\");\r\n...\r\n\r\ndata: [a, b, ...] // This possible?\r\n\r\n```\r\nHow to go about this? Is this a StackOverflow question? Thanks."},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/261551374","html_url":"https://github.com/chartjs/Chart.js/issues/3622#issuecomment-261551374","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3622","id":261551374,"user":{"login":"SylarRuby","id":7381195,"avatar_url":"https://avatars.githubusercontent.com/u/7381195?v=3","gravatar_id":"","url":"https://api.github.com/users/SylarRuby","html_url":"https://github.com/SylarRuby","followers_url":"https://api.github.com/users/SylarRuby/followers","following_url":"https://api.github.com/users/SylarRuby/following{/other_user}","gists_url":"https://api.github.com/users/SylarRuby/gists{/gist_id}","starred_url":"https://api.github.com/users/SylarRuby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylarRuby/subscriptions","organizations_url":"https://api.github.com/users/SylarRuby/orgs","repos_url":"https://api.github.com/users/SylarRuby/repos","events_url":"https://api.github.com/users/SylarRuby/events{/privacy}","received_events_url":"https://api.github.com/users/SylarRuby/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T14:57:27Z","updated_at":"2016-11-18T14:57:27Z","body":"@frlinw Yes. I had to use http://js2.coffee/ :) Thanks!"}}
{"actor":{"display_login":"SylarRuby"}}