Sergiu
Sergiu

Reputation: 2626

Vaadin InvientCharts formatterJsFunc

I'm using a vaadin add-on for displaying some charts and I have such method available : setFormatterJsFunc and I'm not sure what kind of variables would be available to it .

Has anyone encountered this ?

Thank you

Upvotes: 0

Views: 96

Answers (1)

ogzd
ogzd

Reputation: 5692

It's input is a javascript function, that when you hover on a point in the chart, it shows the value at there.

For example;

tooltip.setFormatterJsFunc("function() {"
            + " return '' + this.series.name +': '+ this.y +''; " + "}");

Upvotes: 1

Related Questions