Home Forums Chart Support CanvasJS Tooltip

CanvasJS Tooltip

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

    leo

    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

    @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.