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.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Charts Navigator Date Format

Michael Chand
5 years ago Apr 07, 2017 8:34am
Christian Schmidt
5 years ago Apr 07, 2017 9:37am

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" });
                new String { "Jan", "Feb", "Mär", "Ape", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez" });
Michael Chand
5 years ago Apr 07, 2017 9:42am