You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Ovilia (via GitHub)" <gi...@apache.org> on 2024/11/06 08:50:12 UTC
Re: [I] [Feature] Change charts locale and theme dynamically [echarts]
Ovilia commented on issue #18540:
URL: https://github.com/apache/echarts/issues/18540#issuecomment-2459030556
There're a lot of setting to do so it may not be easy to dynamically change theme. Leave this issue open for future discussion.
Current way to do:
```js
const option = {...};
chart.setOption(option);
// reset theme when necessary
chart = echarts.init(dom, 'theme-name');
chart.setOption(option, true); // Use notMerge: true to reset all options before.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org