Hi,
I’m having a hard time configuring my tooltips in vaadin charts addon v1.1.7.
Currently, I’m setting the tooltip as following:
...
Tooltip tooltip = new Tooltip();
tooltip.setHeaderFormat("<b>{this.x}</b><br>");
tooltip.setShared(true);
tooltip.setPointFormat("{series.name}: {point.y}");
tooltip.setValueSuffix("%");
chartConfiguration.setTooltip(tooltip);
...
While this perfectly works, I want a more complex tooltip, like all series names and corresponding values for one category. In Highcharts, this would look like this
http://jsfiddle.net/AcNUM/84/
(please check the formatter property). However, placing a javascript function into “setPointFormat” or even “setFormatter” doesn’t work, it always fails to find any of the objects (series, points, etc).
Is it even possible to do the following?
tooltip.setFormatter("function() {this.points.forEach(point){...};}"); //example code
Would be nice if someone could share his/her experiences.
Thanks in advance!