Skip to content
Closed
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
3 changes: 2 additions & 1 deletion en/option/component/geo-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ Selected mode decides whether multiple selecting is supported. By default, `fals

{{ use: partial-label(
prefix = "#" + ${prefix},
formatter = true
formatter = true,
minMargin = ${labelMinMargin}
) }}

#${prefix} itemStyle(Object)
Expand Down
9 changes: 8 additions & 1 deletion en/option/partial/item-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") + " border width. No b
defaultMiterLimit = ${defaultMiterLimit}
) }}

{{ if: ${hasBorderRadius} }}

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

{{ /if }}

{{ use: partial-style-shadow-opacity(
prefix = ${prefix},
defaultOpacity = ${defaultOpacity},
Expand All @@ -68,4 +76,3 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") + " border width. No b
prefix = '#' + ${prefix}
) }}
{{ /if }}

10 changes: 10 additions & 0 deletions en/option/partial/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ See: [label rotation](${galleryEditorPath}bar-label-rotation).

Whether to move text slightly. For example: `[30, 40]` means move `30` horizontally and move `40` vertically.

{{ if: ${minMargin} }}
#${prefix} minMargin(number)

{{ use: partial-version(
version = "5.0.0"
) }}

Minimal margin between labels. Used when label has [layout](~series.labelLayout).
{{ /if }}

{{ if: ${formatter} }}
#${prefix} formatter(string|Function)

Expand Down
3 changes: 2 additions & 1 deletion en/option/series/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ Label style configurations of single data.
prefix = "#" + ${prefix},
defaultPosition = "'inside'",
noPosition = true,
formatter = ${topLevel}
formatter = ${topLevel},
minMargin = ${state} === 'normal'
) }}

##${prefix} position(string|Array) = 'inside'
Expand Down
6 changes: 4 additions & 2 deletions en/option/series/effectScatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ The brush type for ripples. options: `'stroke'` and `'fill'`.
{{ use: partial-label(
prefix = "##",
defaultPosition = "'inside'",
formatter = true
formatter = true,
minMargin = true
) }}

## labelLine(Object)
Expand Down Expand Up @@ -218,7 +219,8 @@ Configurations of select state. Available when [selectedMode](~series-effectScat

{{ use: partial-label(
prefix = "###",
defaultPosition = "inside"
defaultPosition = "inside",
minMargin = true
) }}

### labelLine(Object)
Expand Down
16 changes: 14 additions & 2 deletions en/option/series/funnel.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ Horizontal align. Defaults to align center. Can be 'left', 'right', 'center'.
{{ use: partial-funnel-label(
prefix = "##",
position = true,
formatter = true
formatter = true,
minMargin = true
) }}

## labelLine(Object)
Expand Down Expand Up @@ -219,7 +220,8 @@ The label configuration of a single data item.
{{ use: partial-funnel-label(
prefix = "###",
position = true,
formatter = false
formatter = false,
minMargin = true
) }}

### labelLine(Object)
Expand Down Expand Up @@ -342,6 +344,16 @@ Label position.
[labelLine](~series-funnel.labelLine) can be used to guide to the corresponding trapezoid when label is not inside.
{{ /if }}

{{ if: ${minMargin} }}
#${prefix} minMargin(number)

{{ use: partial-version(
version = "5.0.0"
) }}

Minimal margin between labels. Used when label has [layout](~series-funnel.labelLayout).
{{ /if }}

{{ if: ${formatter} }}
#${prefix} formatter(string|Function)

Expand Down
6 changes: 4 additions & 2 deletions en/option/series/graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ The style of edge line. [lineStyle.color](~series-graph.lineStyle.color) can be
{{ use: partial-label(
prefix = "##",
defaultPosition = "'inside'",
formatter = true
formatter = true,
minMargin = true
) }}

## edgeLabel(Object)
Expand Down Expand Up @@ -432,7 +433,8 @@ The style of this node.
The label style of this node.

{{ use: partial-label(
prefix = "###"
prefix = "###",
minMargin = true
) }}

### emphasis(Object)
Expand Down
6 changes: 4 additions & 2 deletions en/option/series/heatmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ Work for [coordinateSystem](~series-heatmap.coordinateSystem): 'cartesian2d'.

{{ use: partial-label(
prefix = "##",
defaultPosition = "inside"
defaultPosition = "inside",
minMargin = true
) }}

## labelLayout(Object|Function)
Expand Down Expand Up @@ -164,7 +165,8 @@ It is valid with [coordinateSystem](~series-heatmap.coordinateSystem) of 'cartes

{{ use: partial-label(
prefix = "###",
defaultPosition = "inside"
defaultPosition = "inside",
minMargin = true
) }}

### itemStyle(Object)
Expand Down
9 changes: 6 additions & 3 deletions en/option/series/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ See the example using different `step` options:
{{ use: partial-label(
prefix = "##",
defaultPosition = "'top'",
formatter = true
formatter = true,
minMargin = true
) }}

## endLabel(Object)
Expand All @@ -132,7 +133,8 @@ Label on the end of line.
{{ use: partial-label(
prefix = "##",
formatter = true,
noPosition = true
noPosition = true,
minMargin = true
) }}

### valueAnimation(boolean)
Expand Down Expand Up @@ -356,7 +358,8 @@ The style of the text of single data point.

{{ use: partial-label(
prefix = "###",
defaultPosition = "top"
defaultPosition = "top",
minMargin = true
) }}

### labelLine(Object)
Expand Down
16 changes: 14 additions & 2 deletions en/option/series/lines.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ The curveness of edge. The values from 0 to 1 could be set. The curveness would
Label settings. Does not work when [polyline](~series-lines.polyline) is `true`.

{{ use: lines-label(
prefix = "##"
prefix = "##",
minMargin = true
) }}

## labelLayout(Object|Function)
Expand Down Expand Up @@ -230,7 +231,8 @@ The line style of this data item.
Label of a single line. Available when [polyline](~series-lines.polyline) is not `true`.

{{ use: lines-label(
prefix = "###"
prefix = "###",
minMargin = true
) }}

### emphasis(Object)
Expand Down Expand Up @@ -315,6 +317,16 @@ the position of label, options:
+ `'middle'`
+ `'end'`

{{ if: ${minMargin} }}
#${prefix} minMargin(number)

{{ use: partial-version(
version = "5.0.0"
) }}

Minimal margin between labels. Used when label has [layout](~series-lines.labelLayout).
{{ /if }}

#${prefix} formatter(string|Function)

{{ use: partial-2d-data-label-formatter() }}
Expand Down
6 changes: 4 additions & 2 deletions en/option/series/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Series of same [map type](~series-map.map) will show in one map. At this point,

{{ use: geo-common(
prefix = '#',
inMap = true
inMap = true,
labelMinMargin = true
) }}

## center(Array)
Expand Down Expand Up @@ -135,7 +136,8 @@ Color of the area.
defaultPosition = "'bottom'",
formatter = true,
noAlign = true,
noVerticalAlign = true
noVerticalAlign = true,
minMargin = true
) }}

### labelLine(Object)
Expand Down
6 changes: 4 additions & 2 deletions en/option/series/pictorialBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ See the example below:
{{ use: partial-label(
prefix = "##",
defaultPosition = "'inside'",
formatter = true
formatter = true,
minMargin = true
) }}

## labelLine(Object)
Expand Down Expand Up @@ -210,7 +211,8 @@ The style setting of the text label in a single bar.

{{ use: partial-label(
prefix = "###",
defaultPosition = "inside"
defaultPosition = "inside",
minMargin = true
) }}

### labelLine(Object)
Expand Down
16 changes: 14 additions & 2 deletions en/option/series/pie.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ Style of circle placeholder.
{{ use: partial-pie-label(
prefix = "##",
position = true,
formatter = true
formatter = true,
minMargin = true
) }}

### alignTo(string) = 'none'
Expand Down Expand Up @@ -371,7 +372,8 @@ The label configuration of a single sector.
{{ use: partial-pie-label(
prefix = "###",
position = true,
formatter = false
formatter = false,
minMargin = true
) }}

### labelLine(Object)
Expand Down Expand Up @@ -501,6 +503,16 @@ The position of label.
In the center of pie chart. See [pie-doughnut example](${galleryEditorPath}pie-doughnut)
{{ /if }}

{{ if: ${minMargin} }}
#${prefix} minMargin(number)

{{ use: partial-version(
version = "5.0.0"
) }}

Minimal margin between labels. Used when label has [layout](~series-pie.labelLayout).
{{ /if }}

{{ if: ${formatter} }}
#${prefix} formatter(string|Function)

Expand Down
6 changes: 4 additions & 2 deletions en/option/series/radar.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Index of [radar](~radar) component that radar chart uses.
{{ use: partial-label(
prefix = "##",
defaultPosition = "'top'",
formatter = true
formatter = true,
minMargin = true
) }}

## labelLayout(Object|Function)
Expand Down Expand Up @@ -180,7 +181,8 @@ Style setting of the text on single inflection point.

{{ use: partial-label(
prefix = "###",
defaultPosition = "top"
defaultPosition = "top",
minMargin = true
) }}

### itemStyle(Object)
Expand Down
11 changes: 7 additions & 4 deletions en/option/series/sankey.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ Specify which layer is set, value starts from 0.
prefix = "##",
defaultShowLabel = true,
defaultPosition = "'right'",
formatter1d = true
formatter1d = true,
minMargin = true
) }}

## labelLayout(Object|Function)
Expand All @@ -202,7 +203,8 @@ The style of node rectangle in Sankey diagram.
useColorPalatte = true,
defaultBorderWidth = 1,
defaultBorderColor = "'#aaa'",
useDecal = true
useDecal = true,
hasBorderRadius = true,
) }}

## lineStyle(Object)
Expand Down Expand Up @@ -310,7 +312,8 @@ The style of this node.
The lable style of this node.

{{ use: partial-label(
prefix = "###"
prefix = "###",
minMargin = true
) }}

### emphasis(Object)
Expand Down Expand Up @@ -541,7 +544,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
6 changes: 4 additions & 2 deletions en/option/series/scatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ It could be used with [rectangular coordinate](~grid) and [polar coordinate](~po
{{ use: partial-label(
prefix = "##",
defaultPosition = "'inside'",
formatter = true
formatter = true,
minMargin = true
) }}

## labelLine(Object)
Expand Down Expand Up @@ -188,7 +189,8 @@ the value of data item.

{{ use: partial-label(
prefix = "###",
defaultPosition = "inside"
defaultPosition = "inside",
minMargin = true
) }}

### labelLine(Object)
Expand Down
6 changes: 4 additions & 2 deletions en/option/series/sunburst.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ If angle of data piece is smaller than this value (in degrees), then text is not
},
defaultShowLabel = "true",
noRotate = true,
noAlign = true
noAlign = true,
minMargin = ${minMargin}
) }}


Expand All @@ -58,7 +59,8 @@ To specify the style of the label of the sector.
) }}

{{ use: partial-sunburst-label-helper(
prefix = ${prefix} + '#'
prefix = ${prefix} + '#',
minMargin = ${state} === 'normal'
) }}

#${prefix} labelLine(Object)
Expand Down
Loading