Skip to content Skip to sidebar Skip to footer

Google Chart:fix The Uncaught (in Promise) Error:

using google chart i plotted a line chart like this. In the graph i have created a custom tool tip as shown in the jfiddle. In the above graph there is no problems with displaying

Solution 1:

row is a zero indexed value. You are calling

yValue1 = dt.getFormattedValue(row -1, index1);

without testing if the row isn't the first.

I don't understend completely the logic but I guess that you have to add some logic for the tooltip of the first node.

You will get into that exception every time the

dt.getValue(row, index1) === null

happens to be true for row == 0.

Post a Comment for "Google Chart:fix The Uncaught (in Promise) Error:"