ctx.save();
for (i = 0; i < this.selPoints_.length; i++) {
var pt = this.selPoints_[i];
- if (isNaN(pt.canvasy) || pt.canvasy === null) continue;
+ if (isNaN(pt.canvasy) || pt.canvasy === null || pt.canvasy === undefined) continue;
var circleSize = this.getNumericOption('highlightCircleSize', pt.name);
var callback = this.getFunctionOption("drawHighlightPointCallback", pt.name);
var seriesData = labelToSeries[pt.name];
seriesData.y = pt.yval;
- if ((pt.yval === 0 && !showZeros) || isNaN(pt.canvasy) || pt.canvasy === null) {
+ if ((pt.yval === 0 && !showZeros) || isNaN(pt.canvasy) || pt.canvasy === null || pt.canvasy === undefined) {
seriesData.isVisible = false;
continue;
}