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?
It should work out of the box with gauges too.
Can you provide a code snippet that with the failing tooltip formatter?
Starting with code from
Remove tooltip suffix
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
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.