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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
overriding tooltip for gauge charts
I've been successfully in overriding tool tips behavior for line & bar chart types using setFormatter().
However, the gauge type will not allow me to override the default tool tip with setFormatter().
Is there any special trick for gauge and tool tip setFormatter, or is this a bug?
Thanks,
Malcolm
Hi,
It should work out of the box with gauges too.
Can you provide a code snippet that with the failing tooltip formatter?
Regards,
Guille
Starting with code from
http://demo.vaadin.com/charts/#AngularGauge
Remove tooltip suffix
plotOptions.getTooltip().setValueSuffix(" km/h");
Add tooltip formatter (I've tried several things but none work). The following is modified from the setFormatter javadoc.
plotOptions.getTooltip().setFormatter("this.series.name +': '+ this.y +' km/h';");
ive' tried hard coded formats like
plotOptions.getTooltip().setFormatter("'300 km/h'");
In some situations, I need to set the tooltip to a value/desription that is differnt than what is displayed in the needle.
Example, the max might be 200 km/h, but the velocity is 300 km/h and I want to display the value on the tooltip.
Note: The tool tip on the chart Configuration works, but not the PlotOptionsGauge. This is odd since the PlotOptionsGauge is what is used to override tooltip behavior in the Vaadin chart demo.
Thanks,
Malcolm