Skip to content

Commit

Permalink
Add color to financial time series sample (chartjs#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
TPullen21 authored and simonbrunel committed Aug 8, 2018
1 parent 110fa9f commit 6c19de9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/scales/time/financial.html
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6c19de9

Please sign in to comment.