Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Charts Navigator Date Format
Hi ervery one,
I have a question regarding the navigtor of a chart with a timeline.
I want to change the format of the timeline (e.g. 12. Dec -> 12.Dez).
But I have no clue how to do it.
Thank you very much in advance!
Last updated on
Hello Michael,
maybe this one helps to i18n your charts in general:
import com.vaadin.addon.charts.model.Lang;
import com.vaadin.addon.charts.ChartOptions;
private static void setChartLanguage() {
final Lang lang = new Lang();
lang.setNoData("Es gibt momentan keine Daten, die angezeigt werden können.");
lang.setMonths(new String { "Januar", "Februar", "März", "Apex", "Mai", "Juni", "Juli", "August",
"September", "Oktober", "November", "Dezember" });
lang.setShortMonths(
new String { "Jan", "Feb", "Mär", "Ape", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez" });
ChartOptions.get().setLang(lang);
}
Last updated on
+1
Hi Christian,
thank you very much.
This did help a lot!
Last updated on
You cannot reply to this thread.