{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3176","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3176/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3176/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3176/events","html_url":"https://github.com/chartjs/Chart.js/issues/3176","id":172321160,"number":3176,"title":"Wrong fill color on line chart","user":{"login":"yuvalkalev","id":2197788,"avatar_url":"https://avatars.githubusercontent.com/u/2197788?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvalkalev","html_url":"https://github.com/yuvalkalev","followers_url":"https://api.github.com/users/yuvalkalev/followers","following_url":"https://api.github.com/users/yuvalkalev/following{/other_user}","gists_url":"https://api.github.com/users/yuvalkalev/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvalkalev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvalkalev/subscriptions","organizations_url":"https://api.github.com/users/yuvalkalev/orgs","repos_url":"https://api.github.com/users/yuvalkalev/repos","events_url":"https://api.github.com/users/yuvalkalev/events{/privacy}","received_events_url":"https://api.github.com/users/yuvalkalev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Category:%20Bug","name":"Category: Bug","color":"fc2929"},{"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Help%20wanted","name":"Help wanted","color":"007700"},{"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Needs%20Investigation","name":"Needs Investigation","color":"860145"},{"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Needs%20test%20case","name":"Needs test case","color":"006b75"},{"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Priority:%20p0","name":"Priority: p0","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-21T13:29:37Z","updated_at":"2016-08-24T11:16:18Z","closed_at":null,"body":"It seems the rendering method of the line chart's background color is incorrect in some cases:\r\n![image](https://cloud.githubusercontent.com/assets/2197788/17837457/34e38ace-67bc-11e6-9e43-ca3c1f8c3d45.png)\r\n\r\nCode:\r\n```\r\nlet chart = document.getElementById('person-chart-' + this.props.trader.id);\r\nlet ctx = chart.getContext('2d');\r\n\r\nconst chartData = {\r\n            labels: this.props.trader.pnlGraph.map((val) => { return \"\"; }),\r\n            datasets: [\r\n                {\r\n                    lineTension: 0.4,\r\n                    backgroundColor: '#ECECEC',\r\n                    pointRadius: 0,\r\n                    borderWidth: 2,\r\n                    borderColor: '#828282',\r\n                    data: this.props.trader.pnlGraph\r\n                }\r\n            ]\r\n};\r\n\r\nconst chartOptions = {\r\n            scales: {\r\n                xAxes: [{\r\n                    display: false\r\n                }],\r\n                yAxes: [{\r\n                    display: false\r\n                }]\r\n            },\r\n            legend: {\r\n                display: false\r\n            },\r\n            responsive: true,\r\n            showTooltips: false,\r\n            scaleFontSize: 0\r\n};\r\n\r\nvar newChart = new Chart(ctx, {\r\n            type: 'line',\r\n            data: chartData,\r\n            options: chartOptions\r\n        });\r\n\r\nthis.setState({chart: newChart});\r\n```"},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/242029837","html_url":"https://github.com/chartjs/Chart.js/issues/3176#issuecomment-242029837","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3176","id":242029837,"user":{"login":"yuvalkalev","id":2197788,"avatar_url":"https://avatars.githubusercontent.com/u/2197788?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvalkalev","html_url":"https://github.com/yuvalkalev","followers_url":"https://api.github.com/users/yuvalkalev/followers","following_url":"https://api.github.com/users/yuvalkalev/following{/other_user}","gists_url":"https://api.github.com/users/yuvalkalev/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvalkalev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvalkalev/subscriptions","organizations_url":"https://api.github.com/users/yuvalkalev/orgs","repos_url":"https://api.github.com/users/yuvalkalev/repos","events_url":"https://api.github.com/users/yuvalkalev/events{/privacy}","received_events_url":"https://api.github.com/users/yuvalkalev/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T11:16:18Z","updated_at":"2016-08-24T11:16:18Z","body":"Bugs appears to exist all the way back to 2.0.0. Didn't test on 1.x"}}
{"actor":{"display_login":"yuvalkalev"}}