ionic framework - Change background transparency of Chart.js chart -


i'm using chart.js wrapped within angular-charts.js create bar chart in ionic framework app.

i want make bar background totally opaque.

this code have create chart.

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

have idea of how achieve that?

thanks lot!

colours should array of color objects (not array of color strings). 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/


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -