From: Evert Timberg Date: Sun, 29 May 2016 20:30:31 +0000 (-0400) Subject: Update colors for chart that is created X-Git-Tag: v2.1.5~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd6c4870af3ce2e6ed85b030907835a694b08619;p=thirdparty%2FChart.js.git Update colors for chart that is created --- diff --git a/docs/04-Bar-Chart.md b/docs/04-Bar-Chart.md index f4339f4a8..ad7540288 100644 --- a/docs/04-Bar-Chart.md +++ b/docs/04-Bar-Chart.md @@ -58,11 +58,23 @@ var data = { datasets: [ { label: "My First dataset", - backgroundColor: "rgba(255,99,132,0.2)", - borderColor: "rgba(255,99,132,1)", - borderWidth: 1, - hoverBackgroundColor: "rgba(255,99,132,0.4)", - hoverBorderColor: "rgba(255,99,132,1)", + backgroundColor: [ + 'rgba(255, 99, 132, 0.2)', + 'rgba(54, 162, 235, 0.2)', + 'rgba(255, 206, 86, 0.2)', + 'rgba(75, 192, 192, 0.2)', + 'rgba(153, 102, 255, 0.2)', + 'rgba(255, 159, 64, 0.2)' + ], + borderColor: [ + 'rgba(255,99,132,1)', + 'rgba(54, 162, 235, 1)', + 'rgba(255, 206, 86, 1)', + 'rgba(75, 192, 192, 1)', + 'rgba(153, 102, 255, 1)', + 'rgba(255, 159, 64, 1)' + ], + borderWidth: 1 data: [65, 59, 80, 81, 56, 55, 40], } ]