You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by de...@apache.org on 2018/12/20 11:16:28 UTC

[incubator-echarts] branch master updated: fix(markline): add lineWidth fault tolerance

This is an automated email from the ASF dual-hosted git repository.

deqingli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new 12c96be  fix(markline): add lineWidth fault tolerance
12c96be is described below

commit 12c96beb0ba056330ea5af80afb387c6e1219548
Author: deqingli <an...@gmail.com>
AuthorDate: Thu Dec 20 19:15:30 2018 +0800

    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 e5f3cfc..f1670e6 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
         }
     });
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org