[Chartjs]-Change background transparency of Chart.js chart

5👍

colours should be an array of color objects (not an array of color strings). So you need [ { fillColor: '#ffff00' }, { fillColor: '#0066ff' } ]

<canvas id="bar" class="chart chart-bar" data="data" labels="labels" legend="true" series="series" options="{showTooltips: false}" colours="[ { fillColor: '#ffff00' }, { fillColor: '#0066ff' } ]"></canvas>

Fiddle – http://jsfiddle.net/dyt0wf31/

Leave a comment