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
color option not updated #936
Comments
In fact, your color is already in force, but has not been applied to the echarts series, because the current option.color not corresponding to each series.In this regard, I also expect echarts to change —— color sequential decision color of series . |
Just because the legend keep the color-series Map after render. Try this option and change the color as your description, it work.
But, when legend has been used, you can use legend's api: setColor, see http://echarts.baidu.com/doc/doc-en.html#LegendInterface , set the series to a new color or false for clear the series' color map in legend. Or, maybe the setTheme is the best way, check this http://echarts.baidu.com/doc/example/line1.html#-en Thx for your appreciate. |
Yeah, myChart.setTheme({color:['red','green']}); works great, thanks for that! |
Hi everyone, first of all - ECharts are awesome, the next big thing in dataviz, you guys rock!
Now the issue - I've been trying to change the "color" option and use the .setOption() method. This doesn't update the chart nor calling the .refresh() method. The only method which works is setTheme() // empty param throws an error but does the job..
Anyway, thanks for your hard work!
The text was updated successfully, but these errors were encountered: