Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(sankey): add doc for sankey itemStyle.borderRadius #393

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion en/option/partial/item-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,3 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") + " border width. No b
prefix = '#' + ${prefix}
) }}
{{ /if }}

34 changes: 26 additions & 8 deletions en/option/series/sankey.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,15 @@ The style of node rectangle in Sankey diagram.
prefix = "##",
useColorPalatte = true,
defaultBorderWidth = 1,
defaultBorderColor = "'#aaa'",
defaultBorderColor = "'none'",
useDecal = true
) }}

{{ use: partial-border-radius(
prefix = "##",
version = "5.5.1"
) }}

## lineStyle(Object)

The edge style of Sankey diagram
Expand Down Expand Up @@ -302,7 +307,14 @@ The style of this node.
{{ use: partial-item-style(
prefix = "###",
useColorPalatte = true,
useDecal = true
useDecal = true,
defaultBorderWidth = 1,
defaultBorderColor = "'none'"
) }}

{{ use: partial-border-radius(
prefix = "###",
version = "5.5.1"
) }}

### label(Object)
Expand Down Expand Up @@ -443,7 +455,7 @@ Equals to [links](~series-sankey.links)

{{ target: partial-sankey-line-style }}

#${prefix} color(Color) = "'#314656'"
#${prefix} color(Color) = '#314656'

The color of the edge in Sankey diagram.

Expand Down Expand Up @@ -480,7 +492,9 @@ The curveness of the edge in Sankey diagram.
{{ use: partial-item-style(
prefix = "#" + ${prefix},
useDecal = true,
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'",
defaultBorderWidth = 1
) }}


Expand All @@ -504,14 +518,17 @@ The curveness of the edge in Sankey diagram.

{{ use: partial-item-style(
prefix = "#" + ${prefix},
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'",
defaultBorderWidth = 1
) }}

#${prefix} lineStyle(Object)

{{ use: partial-sankey-line-style(
prefix = "#" + ${prefix},
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultOpacity = ${state} === 'emphasis' ? 0.5 : null
) }}


Expand All @@ -530,7 +547,8 @@ The line style of edge.

{{ use: partial-sankey-line-style(
prefix = "#" + ${prefix},
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultOpacity = ${state} === 'emphasis' ? 0.5 : null
) }}


Expand All @@ -541,7 +559,7 @@ The line style of edge.
version = "5.4.1"
) }}

The label style of each edge/link.
The label style of each edge/link.

{{ use: partial-label(
prefix = ${prefix},
Expand Down
1 change: 0 additions & 1 deletion zh/option/partial/item-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,3 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") + "描边线宽。为
prefix = '#' + ${prefix}
) }}
{{ /if }}

32 changes: 25 additions & 7 deletions zh/option/series/sankey.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,15 @@ levels: [{
prefix = "##",
useColorPalatte = true,
defaultBorderWidth = 1,
defaultBorderColor = "'#aaa'",
defaultBorderColor = "'none'",
useDecal = true
) }}

{{ use: partial-border-radius(
prefix = "##",
version = "5.5.1"
) }}

## lineStyle(Object)

桑基图边的样式
Expand Down Expand Up @@ -305,7 +310,14 @@ data: [{
{{ use: partial-item-style(
prefix = "###",
useColorPalatte = true,
useDecal = true
useDecal = true,
defaultBorderWidth = 1,
defaultBorderColor = "'none'"
) }}

{{ use: partial-border-radius(
prefix = "###",
version = "5.5.1"
) }}

### label(Object)
Expand Down Expand Up @@ -454,7 +466,7 @@ links: [{
+ `'target'`: 使用目标节点颜色。
+ `'gradient'`: 以源节点和目标节点的颜色做一个渐变过渡色。(从 v5.0.0 开始支持)

#${prefix} opacity(number) = 0.2
#${prefix} opacity(number) = ${defaultOpacity|default(0.2)}

桑基图边的透明度。

Expand Down Expand Up @@ -483,7 +495,9 @@ links: [{
{{ use: partial-item-style(
prefix = "#" + ${prefix},
useDecal = true,
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'",
defaultBorderWidth = 1
) }}


Expand All @@ -507,14 +521,17 @@ links: [{

{{ use: partial-item-style(
prefix = "#" + ${prefix},
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'",
defaultBorderWidth = 1
) }}

#${prefix} lineStyle(Object)

{{ use: partial-sankey-line-style(
prefix = "#" + ${prefix},
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultOpacity = ${state} === 'emphasis' ? 0.5 : null
) }}


Expand All @@ -533,7 +550,8 @@ links: [{

{{ use: partial-sankey-line-style(
prefix = "#" + ${prefix},
hasInherit = ${state} === 'emphasis'
hasInherit = ${state} === 'emphasis',
defaultOpacity = ${state} === 'emphasis' ? 0.5 : null
) }}


Expand Down