Home › forums › Using CanvasJS › CanvasJS Tooltip
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 9 months ago.
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.
You must be logged in to reply to this topic.