mir*_*lon 12 opacity highcharts
我想要一个不透明度为0.1的面积图.如果我没有指定颜色,一切正常:
plotOptions: {
series: {
fillOpacity: 0.1
}
}
series: [{
name: '1',
data: [1,2,3],
type: 'area'
}
Run Code Online (Sandbox Code Playgroud)
但是当我更改颜色时,忽略不透明度:
plotOptions: {
series: {
fillOpacity: 0.1
}
}
series: [{
name: '2',
data: [0,1,2],
type: 'area'
color: 'red'
}
Run Code Online (Sandbox Code Playgroud)
我通过删除fillOpacity来解决它,而是使用以下命令将不透明度指定为颜色的一部分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
}]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15503 次 |
| 最近记录: |