This is an automated email from the ASF dual-hosted git repository. susiwen8 pushed a commit to branch sankey-edge-label in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
commit 2dae3292e2e43db0295f769dca490b8e9874f78f Author: susiwen8 <[email protected]> AuthorDate: Sun Oct 16 21:40:00 2022 +0800 feat(sankey): add doc for sankey `edgeLabel` --- en/option/series/sankey.md | 14 ++++++++++++++ zh/option/series/sankey.md | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/en/option/series/sankey.md b/en/option/series/sankey.md index 2324c00e..ef52d1dc 100644 --- a/en/option/series/sankey.md +++ b/en/option/series/sankey.md @@ -82,6 +82,20 @@ The layout direction of the nodes in the Sankey diagram, which can be horizontal The drag-and-drop interaction of the node, which is enabled by default. After opening, the user can drag any node in the Sankey diagram to any position. To turn this interaction off, simply set the value to `false`. +## edgeLabel(Object) + +{{ use: partial-version( + version = "5.4.1" +) }} + +`edgeLabel` describes the text label style in each link. + +{{ use: partial-label( + prefix = "##", + noPosition = true, + formatter1d = true +) }} + ## levels(Array) The setting of each layer of Sankey diagram. Can be set layer by layer, as follows: diff --git a/zh/option/series/sankey.md b/zh/option/series/sankey.md index 3eb4b900..4d828e88 100644 --- a/zh/option/series/sankey.md +++ b/zh/option/series/sankey.md @@ -85,6 +85,20 @@ const option = {"tooltip":{"trigger":"item","triggerOn":"mousemove"},"series":[{ 控制节点拖拽的交互,默认开启。开启后,用户可以将图中任意节点拖拽到任意位置。若想关闭此交互,只需将值设为 `false` 就行了。 +## edgeLabel(Object) + +{{ use: partial-version( + version = "5.4.1" +) }} + +`edgeLabel` 描述了每个边中文本标签的样式。 + +{{ use: partial-label( + prefix = "##", + noPosition = true, + formatter1d = true +) }} + ## levels(Array) 桑基图每一层的设置。可以逐层设置,如下: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
