Home forums Using CanvasJS How to hide a y value of 0 from a shared tooltip

This topic contains 2 replies, has 2 voices, and was last updated by  Michaelp 1 month, 2 weeks ago.

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

    Michaelp
    Member

    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

    Vishwas R
    Keymaster

    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

    Michaelp
    Member

    That’s brilliant. Thanks Vishwas.

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

You must be logged in to reply to this topic.