From 12c96beb0ba056330ea5af80afb387c6e1219548 Mon Sep 17 00:00:00 2001 From: deqingli Date: Thu, 20 Dec 2018 19:15:30 +0800 Subject: [PATCH] fix(markline): add lineWidth fault tolerance --- src/chart/helper/Line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } });