Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Chart Tooltip Html with logic functionality

Arne Muhs
5 years ago Feb 28, 2017 2:58pm
Guillermo Alvarez
5 years ago Mar 01, 2017 7:55am

Hi,

You can use html for the tooltip content, but you'll need to enable useHTML. 

Take a look at the result and code in Lines with Complex HTML Tooltip demo.

Hope this helps,

Guille

Arne Muhs
5 years ago Mar 01, 2017 9:43am
Guillermo Alvarez
5 years ago Mar 01, 2017 9:51am

Tooltip has setPointFormatter so it should work using a complex formatter function too.

It's not really easy to see what's going on, but I would try to do some console.log( debugging and check the value you use for your conditions. Also, I have the feeling than in a point formatter 'this' refers to the point, so try both with 'this.point.ivShowValue' and 'this.ivShowValue' to see if it makes a difference.
 

Arne Muhs
5 years ago Mar 01, 2017 9:52am