From 60ae3abf7e911077e7b4b2b28370640b719a00a4 Mon Sep 17 00:00:00 2001 From: pissang Date: Sun, 31 Dec 2017 23:22:08 +0800 Subject: [PATCH] DON'T FORGET to change return in callback to continue in for loop. --- src/chart/heatmap/HeatmapView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chart/heatmap/HeatmapView.js b/src/chart/heatmap/HeatmapView.js index 29e74edc3..3309299c0 100644 --- a/src/chart/heatmap/HeatmapView.js +++ b/src/chart/heatmap/HeatmapView.js @@ -153,7 +153,7 @@ export default echarts.extendChartView({ if (coordSysType === 'cartesian2d') { // Ignore empty data if (isNaN(data.get(dataDims[2], idx))) { - return; + continue; } var point = coordSys.dataToPoint([ @@ -177,7 +177,7 @@ export default echarts.extendChartView({ else { // Ignore empty data if (isNaN(data.get(dataDims[1], idx))) { - return; + continue; } rect = new graphic.Rect({ -- GitLab