Open
Description
What problem does this feature solve?
In a multilingual website, switching the language of the website often means changing the locale setting of echarts at the same time, but the current API can only specify locale and theme when creating an instance.
const instance = echarts.init(element, theme, { locale });
What does the proposed API look like?
I hope to add two methods like setLocale
and setTheme
on the chart instance to change the language or theme instead of recreating a new instance every time.