Home › forums › Using CanvasJS › How to hide a y value of 0 from a shared tooltip
Tagged: shared tooltip, tooltip
This topic contains 2 replies, has 2 voices, and was last updated by Michaelp 9 months, 1 week ago.
How can I hide a y value of 0 from a shared tooltip?
See my jsfiddle: https://jsfiddle.net/pigottm/v3gy9aph/11/
For example, “peanuts” has a 0 y value in 2002 and I don’t want the 2002 value to appear in the tooltip. I only want to see the 2001 value.
You can use contentFormatter to format the content of toolTip according to your requirement. Please take a look at this updated JSFiddle.
That’s brilliant. Thanks Vishwas.
You must be logged in to reply to this topic.