Skip to content
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

如何动态的设置theme? #16

Closed
ding-kai opened this issue Aug 17, 2017 · 2 comments
Closed

如何动态的设置theme? #16

ding-kai opened this issue Aug 17, 2017 · 2 comments

Comments

@ding-kai
Copy link

theme修改后无法动态更新。echart3舍弃了setTheme,官方建议是销毁后重建实例,所以建议提供一个reset方法

@twp0217
Copy link
Owner

twp0217 commented Aug 17, 2017

感谢建议,晚点更新上库

@twp0217
Copy link
Owner

twp0217 commented Nov 8, 2018

请使用最新版本,设置theme属性即可
<ngx-echarts [option]="option" [theme]="theme"></ngx-echarts>

@twp0217 twp0217 closed this as completed in a9c3073 Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants