[Bug] Unable to distinguish the disabled legend in the dark mode
Version
5.3.0
Link to Minimal Reproduction
https://codepen.io/Harshitha19/pen/wvmgbeZ
Steps to Reproduce
- Open the sample and click on any one of the legends to toggle the series line.
- Observe that it is hard to distinguish between the enabled legend text and the disabled legend text.
Current Behavior
There is hardly any difference between enabled and disabled legend text in the dark theme.
Expected Behavior
Disabled text color should be applied according to the theme selected.
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Hi, This is something we are also looking for the solution. Any suggestions/ workaround in this regard would be much appreciated.
They seems to have changed the way they store the themes, and so the theme builder is not working anymore...
In the meantime, you can "update" the color by hand:
import dark from 'echarts/lib/theme/dark';
dark.legend.textStyle.color = "#ffffff";
Or you can register a new theme, and specify the correct color:
echarts.registerTheme("xdark", {
legend: {
textStyle: {
color: "#ffffff"
}
},
});
Problem location: https://github.com/apache/echarts/blob/27415e3b82e473525707d1621ceb9f6a0d388f20/theme/dark.js#L99-L103
Is there any plan for this bug?