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

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


The following commit(s) were added to refs/heads/master by this push:
     new 05ee420  chore: refine sankey line style color
     new b643386  Merge pull request #191 from susiwen8/sankey-linecolor
05ee420 is described below

commit 05ee420602b25e88f861966cd6a2d552a41f3419
Author: susiwen8 <[email protected]>
AuthorDate: Thu Jul 15 23:56:08 2021 +0800

    chore: refine sankey line style color
---
 en/option/series/sankey.md | 6 +++++-
 zh/option/series/sankey.md | 8 +++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/en/option/series/sankey.md b/en/option/series/sankey.md
index 0358951..5610ae0 100644
--- a/en/option/series/sankey.md
+++ b/en/option/series/sankey.md
@@ -190,7 +190,7 @@ The style of node rectangle in Sankey diagram.
 
 ## lineStyle(Object)
 
-The edge style of Sankey diagram, in which 
[lineStyle.color](~series-sankey.lineStyle.color) can be assigned to the value 
of `'source'` of `'target'`, then the edge will automatically take the source 
node or target node color as its own color.
+The edge style of Sankey diagram
 
 {{ use: partial-sankey-line-style(
     prefix = "##"
@@ -405,6 +405,10 @@ Equals to [links](~series-sankey.links)
 
 The color of the edge in Sankey diagram.
 
++ `'source'`: use source node color.
++ `'target'`: use target node color.
++ `'gradient'`: gradient color between source node and target node (supported 
in 5.0).
+
 #${prefix} opacity(number) = 0.2
 
 The opacity of the edge in Sankey diagram.
diff --git a/zh/option/series/sankey.md b/zh/option/series/sankey.md
index 7cc2aa9..26280e0 100644
--- a/zh/option/series/sankey.md
+++ b/zh/option/series/sankey.md
@@ -193,9 +193,7 @@ levels: [{
 
 ## lineStyle(Object)
 
-桑基图边的样式,其中 [lineStyle.color](~series-sankey.lineStyle.color) 
支持设置为`'source'`或者`'target'`特殊值,此时边会自动取源节点或目标节点的颜色作为自己的颜色。
-
-从 5.0 开始, [lineStyle.color](~series-sankey.lineStyle.color) 
还可以设置为`'gradient'`,取从源节点到目标节点的渐变色。
+桑基图边的样式
 
 {{ use: partial-sankey-line-style(
     prefix = "##"
@@ -410,6 +408,10 @@ links: [{
 
 桑基图边的颜色。
 
++ `'source'`: 使用源节点颜色。
++ `'target'`: 使用目标节点颜色。
++ `'gradient'`: 以源节点和目标节点的颜色做一个渐变过度色。(5.0开始支持)
+
 #${prefix} opacity(number) = 0.2
 
 桑基图边的透明度。

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to