apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.77k stars 19.62k forks source link

[Feature] change the color of svg icons #20290

Open anuragg33 opened 3 months ago

anuragg33 commented 3 months ago

What problem does this feature solve?

In legend i want to use both icon and custom svg image for e.g 'rect' Legend A 'custom icon', 'rect' Legend B 'custom icon'.

What does the proposed API look like?

Svg icon color can be changed dynamically

Ovilia commented 3 months ago

When using 'path://...'-like icons, the color is decided by series/data. If you want to customize the color of the icon in the legend, use 'image://...' instead.