var seriesData = labelToSeries[pt.name];
seriesData.y = pt.yval;
- if ((pt.yval === 0 && !showZeros) || !utils.isOK(pt.canvasy)) {
+ if ((pt.yval === 0 && !showZeros) || isNaN(pt.canvasy) || pt.canvasy === null || pt.canvasy === undefined) {
seriesData.isVisible = false;
continue;
}