echarts-bot[bot] commented on issue #21672:
URL: https://github.com/apache/echarts/issues/21672#issuecomment-4873851454
@lingdang1007 Looks like you haven't used English for your query - I've
automatically translated the content for you! 😊 To help more people understand
your issue and get you faster assistance, we'd suggest using English next time
if possible. Thanks for your understanding! 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**BODY**
### What problem does this feature solve?
Currently, magicType only has two states: normal and emphasis
During initialization, you cannot set colors for the default selected icons.
If you need to change the color, you can only change all icon colors together
You cannot set different colors for the currently selected type
I hope it supports selected status styles like the series
### What does the proposed API look like?
magicType: {
type: ['line', 'bar'],
Default styles for each type
iconStyle: {
line: { color: '#0FBF98' }, // Line chart: green
bar: { color: '#333333' } // Bar chart: gray
},
Or use the selected state
selectedIconStyle: {
color: '#0FBF98' // Currently selected type: green
},
normalIconStyle: {
color: '#333333' // Unselected type: gray
}
}
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]