Home Forums Chart Support How to hide a y value of 0 from a shared tooltip

How to hide a y value of 0 from a shared tooltip

Viewing 3 posts - 1 through 3 (of 3 total)
  • #23664

    Hi,

    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.

    #23665

    Michael,

    You can use contentFormatter to format the content of toolTip according to your requirement. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    #23667

    That’s brilliant. Thanks Vishwas.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.