-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Description
Version
5.6.0
Link to Minimal Reproduction
Steps to Reproduce
I am using visualMap
to fill a line chart with different coloured areas below the line
There is already an undocumented(?) behaviour where I have to set areaStyle: {}
in order to be able to fill with the visualMap
pieces
docs say I can set both color
and opacity
for the visualMap pieces https://echarts.apache.org/en/option.html#visualMap-piecewise.pieces
However only the color
works, instead all the pieces inherit the default 0.7 opacity from areaStyle https://echarts.apache.org/en/option.html#series-line.areaStyle.opacity
Current Behavior
Setting visalMap.pieces[].opacity
has no effect
However setting visalMap.pieces[].color
with an alpha component does have an effect
This makes it more complicated for me to build a frontend component for the chart which wants to treat color and opacity separately
Expected Behavior
visalMap.pieces[].opacity
should override the default areaStyle opacity
Environment
- OS: macOS Sonoma
- Browser: Chrome 139
- Framework: none
Any additional comments?
No response