diff --git a/src/chart/heatmap/HeatmapView.js b/src/chart/heatmap/HeatmapView.js index 62a013a49e..be99ac45f7 100644 --- a/src/chart/heatmap/HeatmapView.js +++ b/src/chart/heatmap/HeatmapView.js @@ -185,10 +185,10 @@ export default echarts.extendChartView({ rect = new graphic.Rect({ shape: { - x: point[0] - width / 2, - y: point[1] - height / 2, - width: width, - height: height + x: Math.floor(point[0] - width / 2), + y: Math.floor(point[1] - height / 2), + width: Math.ceil(width), + height: Math.ceil(height) }, style: { fill: data.getItemVisual(idx, 'color'),