echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] Visual Map Gradient Inquiry

Open tkdrn11 opened this issue 1 year ago • 4 comments

What problem does this feature solve?

https://echarts.apache.org/examples/en/editor.html?c=area-pieces

As in the example above, I want to add a gradient background color to a specific section using a visual map. I want to add it as a gradient.

Is there a way??

There are users who have the same problem as me, so I will share the link.

https://github.com/apache/echarts/issues/8034

Please help. thank you

What does the proposed API look like?

after

tkdrn11 avatar Jan 19 '24 09:01 tkdrn11

There is an option for Gradient. See this stackoverflow post.

MatthiasMert avatar Jan 19 '24 10:01 MatthiasMert

I want to give a gradient to each section.

I know that I need to use a visual map to give area colors for each section, but is there a way to give a gradient in a visual map?

tkdrn11 avatar Jan 20 '24 03:01 tkdrn11

Any news on this?

@MatthiasMert Unfortunately your proposed solution does not really apply, as it would require multiple datasets. With visualMap we can alter the visualization of a single dataset, but it does not support gradients (as required in this ticket).

Mehly avatar Aug 22 '24 09:08 Mehly

I'm having the same issue, it would be nice for the visualMap to apply a color over the top of a series' own areaStyle with some opacity

danielfrenda avatar Oct 01 '24 03:10 danielfrenda