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

Charts 4.2.0: cannot customize From/To labels #603

Open
mvysny opened this issue Dec 17, 2020 · 2 comments
Open

Charts 4.2.0: cannot customize From/To labels #603

mvysny opened this issue Dec 17, 2020 · 2 comments

Comments

@mvysny
Copy link
Member

mvysny commented Dec 17, 2020

I expect the following code to customize the From/To labels in the range selector, but it doesn't work and the default "From"/"To" strings are shown anyways:

        configuration.getLang().setRangeSelectorFrom("F2");
        configuration.getLang().setRangeSelectorTo("T2");

Screenshot from 2020-12-17 16-39-12

I'll attach an example app shortly.

@mvysny
Copy link
Member Author

mvysny commented Dec 17, 2020

vaadin-app.zip

Simply unzip the app and run it via mvn -C clean package jetty:run

@DiegoCardoso
Copy link
Contributor

Hi @mvysny,

You may be able to set it through ChartOptions like so:

Lang lang = new Lang();
lang.setRangeSelectorFrom("F2");
lang.setRangeSelectorTo("T2");

ChartOptions options = ChartOptions.get();
options.setLang(lang);

This will set the same value for all charts on the project.

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