apache / echarts

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

[Feature] change the color of svg icons #20290

Open anuragg33 opened 2 months ago

anuragg33 commented 2 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 2 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.