Does Vaadin Charts provide a way for formatting the tooltip on the fly. I would like to bind some logic to the value presentation on the tooltip. In place of SOME_STRING, I need reverseNormalization func to alter the values.
Map coefficients = new HashMap();
Chart chart = new Chart(ChartType.LINE);
Configuration conf = chart.getConfiguration();
Tooltip tooltip = conf.getTooltip();
tooltip.setFormatter(
"function() { " +
"return SOME_STRING }"
);
func reverseNormalization(String name, Double normalizedValue) {
return normalizedValue * coefficients.get(name);;
}