Home forums Using CanvasJS CanvasJS Tooltip

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 3 weeks, 6 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22371

    leo
    Member

    Hi Canvas JS Team,

    I have json with no y values. If I am adding tooltip it shows ‘undefined’ value. How to handle this scenario?

    http://jsfiddle.net/273Lqh3g/86/

    Thanks

    #22376

    Vishwas R
    Keymaster

    @leo,

    You are facing this issue as the dataPoints that you are passing to chart doesn’t have y-value whereas within toolTip contentFormatter you are trying to access y-value, which is basically undefined. Removing y-value within contentFormatter should work fine in your case. Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.