A call like
chart.draw(data, { colors: ['#e0440e', '#e6693e', '#ec8f6e', ...], ... });
creates a chart with colors looking like semi-transparent. However, we passed RGB colors, with no alpha parameter!
In other chart apps (like jqPlot, CanvasJS etc) you may pass rgba calls instead, like in
[ 'rgba(255,0,0,0.5)', 'rgba(0,255,0,0.5)', ...]
Google Charts does not seem to support this. But is there any other way to pass RGBA custom colors instead, with a simple syntax?
PS: there is a somehow similar question for pie charts, but mine is different, for custom color palettes.
once the
'ready'
event fires on the chart, you can modify the svgjust need a way to find the chart elements you want to modify
in the following working snippet, random colors are used to feed the chart
then when
'ready'
fires, those colors are found and replaced with rgbaUse $.attr('opacity', value) for all elements filtered by colors. exapmle with jQuery...