Skip to content

[Feature] Change charts locale and theme dynamically #18540

Open
@hungtcs

Description

@hungtcs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion-requiredFurther discussion is required before we decide if this issue should be fixed.enThis issue is in Englishnew-featuretopic: theme

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions