I have a chart in Vaadin 8 with the following formatter for y axis labels:
chart.getConfiguration().getyAxis().getLabels()
.setFormatter("function() { return this.point.name + ' sample'; }");
I can't seem to get it to work correctly, as the chart always displays only the point.name part and not the ' sample' part. I did the same for the tooltip where it works:
chart.getConfiguration().getTooltip()
.setFormatter("function() { return this.point.name + ' sample'; }");

After quite some time I found the answer, I had to set the label formatting function in the
PlotOptionsPieobject:The result: