-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(legend): make default legend more intuitive #14497
Conversation
Thanks for your contribution! The pull request is marked to be Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes. When the doc PR is merged, the maintainers will remove the |
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
doc: more intuitive legend apache/echarts#14497
Brief Information
This pull request is in the type of:
What does this PR do?
Update default legend style so that the icons looks more intuitively like that of the series.
Fixed issues
Details
Before: What was the problem?
Legend for line series only have the color of the series, lacking
itemStyle.borderWidth
,itemStyle.borderColor
,lineStyle.color
,lineStyle.borderColor
and etc.After: How is it fixed in this PR?
Legend for line series looks more like that of the series.
emptyCircle
has been changed tocircle
.See
test/legend-style.html
for more info.Usage
Are there any API changes?
Related test cases or examples to use the new APIs
test/legend-style.html
Others
Merging options
Other information
There was a PR #12444 before v5.0 and there was too much to be merged so I made this new PR based on v5.0 code base.