From b16941b193422f3a667ddc7126e689a930a8fc1f Mon Sep 17 00:00:00 2001 From: Tom Pullen Date: Mon, 6 Aug 2018 10:04:09 +0100 Subject: [PATCH] Enhancement - Add Colour To Financial Time Series Sample Enhancement suggested by #5342 --- 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,