diff --git a/src/chart/helper/Line.js b/src/chart/helper/Line.js index e5f3cfc453..f1670e6d7c 100644 --- a/src/chart/helper/Line.js +++ b/src/chart/helper/Line.js @@ -75,7 +75,7 @@ function setLinePoints(targetShape, points, lineWidth) { y2: points[1][1] }, style: { - lineWidth: lineWidth + lineWidth: lineWidth == null ? 1 : lineWidth } });