echarts [Feature] change the color of svg icons

vu8f3i0k  于 3个月前  发布在  Echarts
关注(0)|答案(1)|浏览(79)

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

tf7tbtn2

tf7tbtn21#

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.

相关问题