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
请问 clear 后如何设置 theme? #5018
Comments
调用 clear 后需要重新显式申明 theme,通过这种方式再次声明 theme: chart.clear();
chart.theme({
type: 'classic'
});
// or
chart.attr('theme', 'classic');
chart.render(); |
这种也需要支持吧,theme api 加一个重载判断。 |
这种可以暂时不考虑?因为不阻断,按照 @pepper-nice 的写法就行。不然还需要考虑 |
各位开发者,我特别同意你们讨论的观点,但我觉得文档里是不是应该对api写得更详尽一些?文档中很多地方写得都特别草率,实例重新设置主题可能只是其中一个不明确的地方。 |
嗯嗯,目前文档确实有很多问题,在6月份的时候会升级一下文档,会处理这些问题。 |
我用 react 写了一个 demo,点击不同的按钮刷新
container
,但clear
后无法通过chart.theme
设置主题。请问问题出在哪里?如何解决?
The text was updated successfully, but these errors were encountered: