-
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
[Bug] Rich text in legend does not inherit color from legend configuration if theme specifies textStyle.color
#18196
Comments
Observations are correct, |
Guessing the strikethrough means you already inferred this, but clarifying just in case... If you explicitly set a specific color in the rich text config, it cannot change to match the active/inactive colors set by |
This issue is labeled with Please have a look at How to debug ECharts if you'd like to give a try. 🤓 |
If this issue is not fix till now, I would like to fix this issue |
@manishdait have you checked #18260? It seems that this issue was fixed there a moth ago. |
@ChepteaCatalin Sorry for that, The issue was not close therefore. I create that PR |
Version
5.4.1
Link to Minimal Reproduction
https://codepen.io/juliepagano_cs/pen/XWBzLaJ
Steps to Reproduce
legend.textStyle.color
).textStyle.color
).legend.inactiveColor
).textStyle.color
).textStyle.color
in the theme and note that the rich and non-rich text match the legend configuration.Current Behavior
When a chart's theme specifies
textStyle.color
, rich text within the legend configuration inherits from the theme's text color instead of the colors configured in the legend.Expected Behavior
I would expect rich text within a legend to inherit from the legend's color configuration (
legend.textStyle.color
when active andlegend.inactiveColor
when inactive).Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: