Add color to financial time series sample (#5661)

This commit is contained in:
Tom Pullen 2018-08-08 17:44:53 +01:00 committed by Simon Brunel
parent 3010173733
commit a9c4e377a7

View File

@ -56,12 +56,16 @@
var ctx = document.getElementById('chart1').getContext('2d');
ctx.canvas.width = 1000;
ctx.canvas.height = 300;
var color = Chart.helpers.color;
var cfg = {
type: 'bar',
data: {
labels: labels,
datasets: [{
label: 'CHRT - Chart.js Corporation',
backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(),
borderColor: window.chartColors.red,
data: data,
type: 'line',
pointRadius: 0,