Home Forums Chart Support CanvasJS Tooltip

CanvasJS Tooltip

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


    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?





    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.