{"action":"created","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/1261","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1261/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1261/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1261/events","html_url":"https://github.com/nnnick/Chart.js/issues/1261","id":91840665,"number":1261,"title":"Tooltips displaying backgroundColor value instead of data value on bar chart","user":{"login":"victorarcasrios","id":8747102,"avatar_url":"https://avatars.githubusercontent.com/u/8747102?v=3","gravatar_id":"","url":"https://api.github.com/users/victorarcasrios","html_url":"https://github.com/victorarcasrios","followers_url":"https://api.github.com/users/victorarcasrios/followers","following_url":"https://api.github.com/users/victorarcasrios/following{/other_user}","gists_url":"https://api.github.com/users/victorarcasrios/gists{/gist_id}","starred_url":"https://api.github.com/users/victorarcasrios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorarcasrios/subscriptions","organizations_url":"https://api.github.com/users/victorarcasrios/orgs","repos_url":"https://api.github.com/users/victorarcasrios/repos","events_url":"https://api.github.com/users/victorarcasrios/events{/privacy}","received_events_url":"https://api.github.com/users/victorarcasrios/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nnnick/Chart.js/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nnnick/Chart.js/milestones/6","html_url":"https://github.com/nnnick/Chart.js/milestones/v2.0","labels_url":"https://api.github.com/repos/nnnick/Chart.js/milestones/6/labels","id":1105949,"number":6,"title":"v2.0","description":"","creator":{"login":"etimberg","id":6757853,"avatar_url":"https://avatars.githubusercontent.com/u/6757853?v=3","gravatar_id":"","url":"https://api.github.com/users/etimberg","html_url":"https://github.com/etimberg","followers_url":"https://api.github.com/users/etimberg/followers","following_url":"https://api.github.com/users/etimberg/following{/other_user}","gists_url":"https://api.github.com/users/etimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/etimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etimberg/subscriptions","organizations_url":"https://api.github.com/users/etimberg/orgs","repos_url":"https://api.github.com/users/etimberg/repos","events_url":"https://api.github.com/users/etimberg/events{/privacy}","received_events_url":"https://api.github.com/users/etimberg/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":48,"state":"open","created_at":"2015-05-12T00:35:12Z","updated_at":"2015-08-30T21:54:33Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":10,"created_at":"2015-06-29T15:44:19Z","updated_at":"2015-08-31T00:21:09Z","closed_at":null,"body":"The tooltips of my bar chart display the string \"rgb(0,0,0)\" instead of the label value with the code above. You can see that this.data.labels contains numeric strings. If I change them to regular ints, they're being displayed fine after a strange effect where you see a lot of decimals changing so fast...\r\n\r\n```javascript\r\nvar ScoresFrequencyChartDrawer = function () {\r\n\tthis.data = { \r\n\t\tlabels: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\"],\r\n        datasets: [{\r\n            backgroundColor: \"rgba(150, 150, 150, 0.9)\",\r\n            data: [1, 1, 2, 3, 7, 12, 15, 17, 23, 15, 10]\r\n        }]\r\n    };\r\n    this.options = {\r\n\t\tevents: [\"mousemove\"],\r\n\t\tscales: {\r\n\t\t\txAxes: [{\r\n\t\t\t\tdisplay: true,\r\n\t\t\t\tgridLines: {\r\n\t\t\t\t\tdrawOnChartArea: false\r\n\t\t\t\t},\r\n\t\t\t\tlabels: {\r\n\t\t\t\t\tfontSize: 15,\r\n\t\t\t\t\tfontStyle: \"bolder\"\r\n\t\t\t\t}\r\n\t\t\t}],\r\n\t\t\tyAxes: [{\r\n\t\t\t\tdisplay: false,\r\n\t\t\t\tgridLines: {\r\n\t\t\t\t\tdrawOnChartArea: false\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t}\r\n\t};\r\n\tthis.chart = {};\r\n}\r\n\r\nScoresFrequencyChartDrawer.prototype.draw = function() {\r\n\tvar canvas = document.getElementById(\"scores-frequency-chart\");\r\n    var ctx = canvas.getContext(\"2d\");\r\n    this.chart = new Chart(ctx, {\r\n        type: 'bar',\r\n        data: this.data,\r\n        options: this.options\r\n    });\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/comments/136220347","html_url":"https://github.com/nnnick/Chart.js/issues/1261#issuecomment-136220347","issue_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1261","id":136220347,"user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T00:21:09Z","updated_at":"2015-08-31T00:21:09Z","body":"It makes me wonder if we can strip color.js down to exactly what we need\nOn Sun, Aug 30, 2015 at 5:58 PM Evert Timberg <notifications@github.com>\nwrote:\n\n> yup, color.js imports color-string.js. Color-string.js the one with the\n> regex funny business\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/nnnick/Chart.js/issues/1261#issuecomment-136218178>.\n>\n"}}