I want an area chart with opacity 0.1. If I do not specify the color, everything works fine:
plotOptions: {
series: {
fillOpacity: 0.1
}
}
series: [{
name: '1',
data: [1,2,3],
type: 'area'
}
But when I change the color, the opacity is ignored:
plotOptions: {
series: {
fillOpacity: 0.1
}
}
series: [{
name: '2',
data: [0,1,2],
type: 'area'
color: 'red'
}
See http://jsfiddle.net/4HkXf/
fillOpacity: 0.1,
color: "rgb(0,0,0)"
seems to work on all browsers
fillOpacity: 0.1,
color: "#000"
does not work on all browsers
color: "rgba(0,0,0,0.1)"
does not work on all browsers
I resolved it by removing fillOpacity
, and instead specifying opacity as part of the color using rbga
:
series: [{
name: 'Buy / Sell ',
data: data.shares_change,
type: 'column',
color: 'rgba(0,128,0,0.4)', // #080
negativeColor: 'rgba(128,0,0,0.4)', // #800
pointWidth: 8
}]
Please use color as hex i.e "#ff0000"
instead of 'red'.
http://jsfiddle.net/4HkXf/3/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With