apache / apache/echarts

[Feature] Set default legend icon for different series types

Open
#20,339 4 comments 0 reactions 0 assignees View on GitHub
en stale support topic: legend
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

I have not been able to figure out a way to do this. I think you should be able to declare a default icon type in the legend for each different series, for example:
bar series: star icon
line series: triangle icon
I know that setting a different symbol on a line series will change the icon in the legend, but there is no way to do this for bar charts

### What does the proposed API look like?

bar: {
icon: 'star',
},
line: {
icon: 'triangle',
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.