Vaadin Charts - Tooltip Number formatting

Hi, I´ve built a chart with the newest Vaadin Charts API.

In the first chart I show currency values. In the Tooltips of the Column-chart I want to show the values in the following format:
1.098,97 €.
I´m not familiar with javascript formatter. There are only methods for setting the decimals and a suffix, but this doesn´t solve my problem for the decimal spearator and the thousands separator.

In the second chart I show percentage values. There I have the same problem with the separators.

Please help

Nobody?

Hi Holger,

You can set the decimal and thousands separator using Lang object in ChartOptions

Lang a = new Lang();
a.setDecimalPoint(decimalPoint);
a.setThousandsSep(thousandsSep);
ChartOptions.get().setLang(a);

Hope this helps!

Looks really nice.

I will give it a try later.

Thanks

Guillermo´s answer is working.

Thank you Guillermo.

@Vaadin: Why is such a nice thing not described in the book of vaadin?

I’m glad it worked!

There is no specific chapter, but it’s mentioned here:

https://vaadin.com/book/-/page/charts.configuration.html

Thank you