From 6c19de95beeb83a176482fe4ecb49a8e1cebf88e Mon Sep 17 00:00:00 2001 From: Tom Pullen Date: Wed, 8 Aug 2018 17:44:53 +0100 Subject: [PATCH] Add color to financial time series sample (#5661) --- samples/scales/time/financial.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/scales/time/financial.html b/samples/scales/time/financial.html index 792eef55306..b261b898661 100644 --- a/samples/scales/time/financial.html +++ b/samples/scales/time/financial.html @@ -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,