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 9bdfc8b add en translation
9bdfc8b is described below
commit 9bdfc8b23a3997c10a800d0c86c583fd5a4566a6
Author: pissang <[email protected]>
AuthorDate: Tue Jul 6 19:30:37 2021 +0800
add en translation
---
en/option/component/geo-common.md | 15 +++++++++------
en/option/component/geo.md | 15 +++++++--------
en/option/component/legend.md | 1 +
en/option/partial/focus-blur-scope.md | 2 ++
en/option/partial/group-id.md | 7 +++++--
en/option/partial/line-border-style.md | 3 ++-
en/option/partial/tooltip-common.md | 13 ++++++++-----
en/option/partial/universal-transition.md | 5 +++--
en/option/series/bar.md | 10 ++++++++++
en/option/series/boxplot.md | 10 ++++++++++
en/option/series/candlestick.md | 10 ++++++++++
en/option/series/custom.md | 10 ++++++++++
en/option/series/funnel.md | 6 ++++++
en/option/series/graph.md | 6 +++---
en/option/series/heatmap.md | 18 ++++++++++++++++++
en/option/series/line.md | 10 ++++++++++
en/option/series/lines.md | 10 ++++++++++
en/option/series/map.md | 10 ++++++++++
en/option/series/pictorialBar.md | 10 ++++++++++
en/option/series/pie.md | 14 ++++++++++++--
en/option/series/radar.md | 10 ++++++++++
en/option/series/scatter.md | 10 ++++++++++
zh/option/series/pie.md | 4 ++--
23 files changed, 178 insertions(+), 31 deletions(-)
diff --git a/en/option/component/geo-common.md
b/en/option/component/geo-common.md
index 68dac60..5c2df34 100644
--- a/en/option/component/geo-common.md
+++ b/en/option/component/geo-common.md
@@ -5,7 +5,6 @@
Map name registered in [registerMap](api.html#echarts.registerMap).
-
{{ if: ${inMap} }}
**Use geoJSON**
```js
@@ -41,7 +40,6 @@ See also [geoJSON hexbin](${galleryEditorPath}custom-hexbin).
The demo above shows that ECharts can uses [geoJSON](http://geojson.org/)
format as map outline. You can use third-party [geoJSON](http://geojson.org/)
data (like [maps](https://github.com/echarts-maps)) and register them into
ECharts.
-
{{ if: ${inMap} }}
**Use SVG**
```js
@@ -77,8 +75,6 @@ See also [Flight
Seatmap](${galleryEditorPath}geo-seatmap-flight).
The demo above shows that SVG format can be used in ECharts. See more info in
[SVG Base
Map](tutorial.html#SVG%20Base%20Map%20in%20Geo%20Coords%20and%20Map%20Series).
-
-
#${prefix} roam(boolean|string) = false
{{ use: partial-roam() }}
@@ -183,8 +179,11 @@ Area filling color.
#${prefix} emphasis(Object)
Map area style in highlighted state.
+
{{ if: !${inMap} }}
-{{ use: partial-focus-blur-scope(isGeoCoordSys: true) }}
+{{ use: partial-focus-blur-scope(
+ isGeoCoordSys = true
+) }}
{{ /if }}
{{ use: partial-geo-common-state(
@@ -201,7 +200,11 @@ Map area style in selected state.
{{ if: !${inMap} }}
#${prefix} blur(Object)
-{{ use: partial-version(version: '5.1.0') }}
+
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
+
Map area style in blurred state.
{{ use: partial-geo-common-state(
diff --git a/en/option/component/geo.md b/en/option/component/geo.md
index ed8f654..e39c14e 100644
--- a/en/option/component/geo.md
+++ b/en/option/component/geo.md
@@ -97,22 +97,21 @@ Style of selected region.
{{ use: geo-region-state() }}
### blur(Object)
-{{ use: partial-version(version: '5.1.0') }}
-Style of blurred region.
-{{ use: geo-region-state() }}
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
+Style of blurred region.
+{{ use: geo-region-state() }}
{{ use: partial-tooltip-in-coords-item(
- componentItemDesc: 'region',
- noAxis: true,
+ componentItemDesc = 'region',
+ noAxis = true,
version = '5.1.0'
) }}
-
-
-
{{ use: partial-silent(
prefix = "#"
) }}
diff --git a/en/option/component/legend.md b/en/option/component/legend.md
index 3cbe363..4f7f87f 100644
--- a/en/option/component/legend.md
+++ b/en/option/component/legend.md
@@ -502,3 +502,4 @@ ${name} line style. If its children have values as
`'inherit'`, the values are i
defaultShadowOffsetX = 0,
defaultShadowOffsetY = 0
) }}
+
diff --git a/en/option/partial/focus-blur-scope.md
b/en/option/partial/focus-blur-scope.md
index 5c803cd..a2728a6 100644
--- a/en/option/partial/focus-blur-scope.md
+++ b/en/option/partial/focus-blur-scope.md
@@ -17,6 +17,7 @@ When the data is highlighted, whether to fade out of other
data to focus the hig
+ `'none'` Do not fade out other data, it's by default.
+ `'self'` Only focus (not fade out) the element of the currently highlighted
data.
+
{{ if: !${isGeoCoordSys} }}
+ `'series'` Focus on all elements of the series which the currently
highlighted data belongs to.
{{ /if }}
@@ -63,3 +64,4 @@ The range of fade out when `focus` is enabled. Support the
following configurati
+ `'series'`
+ `'global'`
{{ /if }}
+
diff --git a/en/option/partial/group-id.md b/en/option/partial/group-id.md
index 3d482e3..850ab7b 100644
--- a/en/option/partial/group-id.md
+++ b/en/option/partial/group-id.md
@@ -1,3 +1,4 @@
+
{{ target: partial-series-group-id }}
## dataGroupId(string)
@@ -6,9 +7,11 @@ A groupID common to all data in the series. the groupID will
be used to classify
If you are using the [dataset](~dataset) component to represent the data, it
is recommended to use `encode.itemGroupID` to specify which dimension is
encoded as the groupID.
-{{ target: partial-data-group-id }}
+{{ target: partial-data-group-id }}
+
#${prefix} groupId(string)
-The groupID of this data item. groupID will be used to classify the data.
\ No newline at end of file
+The groupID of this data item. groupID will be used to classify the data.
+
diff --git a/en/option/partial/line-border-style.md
b/en/option/partial/line-border-style.md
index 06b03ce..4d5ae40 100644
--- a/en/option/partial/line-border-style.md
+++ b/en/option/partial/line-border-style.md
@@ -46,7 +46,8 @@ For example:
{{ if: ${type} === 'border' }}
#${prefix} borderDashOffset(number) = ${defaultDashOffset|default(0)}
-{{ elif: ${type} === 'text' }}
+
+{{ elif: ${type} === 'text' }}
#${prefix} textBorderDashOffset(number) = ${defaultDashOffset|default(0)}
{{ else }}
#${prefix} dashOffset(number) = ${defaultDashOffset|default(0)}
diff --git a/en/option/partial/tooltip-common.md
b/en/option/partial/tooltip-common.md
index 28b7283..a9d732a 100644
--- a/en/option/partial/tooltip-common.md
+++ b/en/option/partial/tooltip-common.md
@@ -23,7 +23,9 @@ tooltip can be configured on different places:
## tooltip(Object)
{{ if: ${version} }}
-{{ use: partial-version(version: '5.1.0') }}
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
{{ /if }}
tooltip settings in the coordinate system component.
@@ -49,7 +51,9 @@ tooltip settings in the coordinate system component.
### tooltip(*)
{{ if: ${version} }}
-{{ use: partial-version(version: '5.1.0') }}
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
{{ /if }}
tooltip settings in this ${componentItemDesc}.
@@ -78,6 +82,7 @@ tooltip settings in this series.
) }}
+
{{ target: partial-tooltip-in-series-data }}
### tooltip(*)
@@ -115,7 +120,6 @@ Whether to show the tooltip component.
including tooltip floating layer and [axisPointer](~tooltip.axisPointer).
{{ /if }}
-
{{ if: !${noAxis} }}
#${prefix} trigger(string) = 'item'
@@ -138,7 +142,6 @@ Options:
Trigger nothing.
-
#${prefix} axisPointer(Object)
Configuration item for axisPointer.
@@ -190,10 +193,10 @@ It is valid when
[axisPointer.type](~tooltip.axisPointer.type) is `'cross'`.
defaultAnimationEasingUpdate = 'exponentialOut',
defaultAnimationDurationUpdate = 200
) }}
-
{{ /if }}
+
{{ target: partial-tooltip-common }}
#${prefix} position(string|Array)
diff --git a/en/option/partial/universal-transition.md
b/en/option/partial/universal-transition.md
index d6ed1d2..4588d68 100644
--- a/en/option/partial/universal-transition.md
+++ b/en/option/partial/universal-transition.md
@@ -1,3 +1,4 @@
+
{{ target: partial-universal-transition }}
#${prefix} universalTransition(object)
@@ -14,7 +15,6 @@ This can be enabled directly by configuring
`universalTransition: true` in the s
Wheather to enable the universal transition animation.
-
##${prefix} seriesKey(string | Array)
The `seriesKey` determines how the series to be animated is associated, it
defaults to the `id` of the series when not configured.
@@ -48,4 +48,5 @@ Configure the animation delay for each shape in a one-to-many
or many-to-one ani
delay: function (index, count) {
return Math.random() * 1000;
}
-```
\ No newline at end of file
+```
+
diff --git a/en/option/series/bar.md b/en/option/series/bar.md
index daade69..d6ff096 100644
--- a/en/option/series/bar.md
+++ b/en/option/series/bar.md
@@ -161,6 +161,8 @@ Options:
{{ use: partial-datasetIndex() }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-2d-data-desc() }}
@@ -173,6 +175,10 @@ The name of data item.
The value of a single data item.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
{{ use: partial-bar-state(
prefix = "##",
topLevel = false,
@@ -234,6 +240,10 @@ Select state of single data.
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/boxplot.md b/en/option/series/boxplot.md
index 7d18539..99723dd 100644
--- a/en/option/series/boxplot.md
+++ b/en/option/series/boxplot.md
@@ -132,6 +132,8 @@ Configurations of select state. Available when
[selectedMode](~series-boxplot.se
prefix = "#"
) }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
Data should be the two-dimensional array shown as follow.
@@ -174,6 +176,10 @@ Value of data item.
[min, Q1, median (or Q2), Q3, max]
```
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
### itemStyle(Object)
Style of a single data.
@@ -250,5 +256,9 @@ Select state of single data.
defaultAnimationDuration = 800
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/candlestick.md b/en/option/series/candlestick.md
index d32acc2..a8551de 100644
--- a/en/option/series/candlestick.md
+++ b/en/option/series/candlestick.md
@@ -159,6 +159,8 @@ Configurations of select state. Available when
[selectedMode](~series-candlestic
prefix = "#"
) }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
Data should be the two-dimensional array shown as follows.
@@ -193,6 +195,10 @@ Value of data item.
[open, close, lowest, highest] (namely: [opening value, closing value, lowest
value, highest value])
```
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
### itemStyle(Object)
Style of a candle box.
@@ -268,6 +274,10 @@ Select state of single data.
defaultAnimationDuration = 300
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/custom.md b/en/option/series/custom.md
index 810a5e8..c18c7e1 100644
--- a/en/option/series/custom.md
+++ b/en/option/series/custom.md
@@ -424,6 +424,8 @@ For example:
{{ use: partial-datasetIndex() }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-2d-data-desc() }}
@@ -436,6 +438,10 @@ Name of data item.
Value of data item.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
### itemStyle(Object)
{{ use: partial-item-style(
@@ -471,6 +477,10 @@ Value of data item.
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/funnel.md b/en/option/series/funnel.md
index 1e92ed0..c5e4eb2 100644
--- a/en/option/series/funnel.md
+++ b/en/option/series/funnel.md
@@ -170,6 +170,8 @@ Configurations of select state. Available when
[selectedMode](~series-funnel.sel
prefix = "#"
) }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-1d-data-desc() }}
@@ -253,6 +255,10 @@ The label configuration of a single data item.
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/graph.md b/en/option/series/graph.md
index 9e0d658..d1e8bd2 100644
--- a/en/option/series/graph.md
+++ b/en/option/series/graph.md
@@ -195,7 +195,7 @@ The style of edge line.
[lineStyle.color](~series-graph.lineStyle.color) can be
{{ use: partial-label(
prefix = "##",
defaultPosition = "'inside'",
- formatter2d = true
+ formatter = true
) }}
## edgeLabel(Object)
@@ -280,7 +280,7 @@ The label style of node in this category.
{{ use: partial-label(
prefix = "###",
defaultPosition = "inside",
- formatter2d = true
+ formatter = true
) }}
### emphasis(Object)
@@ -581,7 +581,7 @@ Label position, options:
{{ use: partial-label(
prefix = "###",
defaultShow = true,
- formatter2d = true
+ formatter = true
) }}
### edgeLabel(Object)
diff --git a/en/option/series/heatmap.md b/en/option/series/heatmap.md
index d0326aa..674a112 100644
--- a/en/option/series/heatmap.md
+++ b/en/option/series/heatmap.md
@@ -112,6 +112,16 @@ Configurations of select state. Available when
[selectedMode](~series-heatmap.se
version = '5.0.0'
) }}
+{{ use: partial-series-encode(
+ prefix = "#"
+) }}
+
+{{ use: partial-seriesLayoutBy() }}
+
+{{ use: partial-datasetIndex() }}
+
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-2d-data-desc() }}
@@ -124,6 +134,10 @@ Name of data item.
Value of data item.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
### label(Object)
It is valid with [coordinateSystem](~series-heatmap.coordinateSystem) of
'cartesian2d' value.
@@ -189,3 +203,7 @@ Style of a single data point. It is valid with
[coordinateSystem](~series-heatma
defaultPosition = "inside"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
diff --git a/en/option/series/line.md b/en/option/series/line.md
index fd5f697..0a449e6 100644
--- a/en/option/series/line.md
+++ b/en/option/series/line.md
@@ -274,6 +274,8 @@ Options:
{{ use: partial-datasetIndex() }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-2d-data-desc() }}
@@ -286,6 +288,10 @@ The name of data item.
The value of a single data item.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
{{ use: partial-symbol(
defaultSymbol = "'circle'",
defaultSymbolSize = 4,
@@ -363,6 +369,10 @@ Select state of specified single data.
defaultAnimationEasing = 'linear'
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/lines.md b/en/option/series/lines.md
index 2751963..b1f02a8 100644
--- a/en/option/series/lines.md
+++ b/en/option/series/lines.md
@@ -173,6 +173,8 @@ Configurations of select state. Available when
[selectedMode](~series-lines.sele
prefix = '#'
) }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
The data set of lines.
@@ -181,6 +183,10 @@ The data set of lines.
the name of data.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
### coords(Array)
An array includes two ore more than two coordinates. Each coordinate could be
`[x, y]` in [rectangular coordinate](~grid) and `[lng, lat]` in [geographic
coordinate](~geo).
@@ -250,6 +256,10 @@ Label of a single line. Available when
[polyline](~series-lines.polyline) is not
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ target: lines-label }}
diff --git a/en/option/series/map.md b/en/option/series/map.md
index 0bde9f4..07c7dfb 100644
--- a/en/option/series/map.md
+++ b/en/option/series/map.md
@@ -54,6 +54,8 @@ Show the symbol in related area (dot of series symbol).
Available when [legend](
{{ use: partial-datasetIndex() }}
+{{ use: partial-series-group-id() }}
+
## labelLayout(Object|Function)
{{ use: partial-label-layout(
@@ -86,6 +88,10 @@ The name of the map area where the data belongs to, such as
`'China'` or `'Unite
The numerical value of this area.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
### selected(boolean) = false
Whether the are selected.
@@ -152,6 +158,10 @@ Select state of polygon.
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/pictorialBar.md b/en/option/series/pictorialBar.md
index b86437b..b0a0c3d 100644
--- a/en/option/series/pictorialBar.md
+++ b/en/option/series/pictorialBar.md
@@ -164,6 +164,8 @@ Configurations of select state. Available when
[selectedMode](~series-pictoialBa
prefix = "#"
) }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-2d-data-desc() }}
@@ -176,6 +178,10 @@ The name of data item.
The value of a single data item.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
{{ use: pictorialBar-symbol-attrs(
prefix = "##",
useZ2 = true
@@ -264,6 +270,10 @@ Select state of the specified single data.
noAnimationDelay = true
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: pictorialBar-animation-delay(
prefix = "##"
) }}
diff --git a/en/option/series/pie.md b/en/option/series/pie.md
index 6a01cf1..a305a62 100644
--- a/en/option/series/pie.md
+++ b/en/option/series/pie.md
@@ -250,6 +250,8 @@ Donut chart can be achieved by setting a inner radius.
prefix = "#"
) }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-1d-data-desc() }}
@@ -262,6 +264,10 @@ The name of data item.
Data value.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
### selected(boolean) = false
Whether the data item is selected.
@@ -278,7 +284,7 @@ The label configuration of a single sector.
### labelLine(Object)
-{{ use: partial-pie-label-line(
+{{ use: partial-label-line(
prefix = '###',
length = true,
length2 = true,
@@ -359,6 +365,10 @@ Animation type when data updates.
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
@@ -425,7 +435,7 @@ Label rotation.
#${prefix} labelLine(Object)
-{{ use: partial-pie-label-line(
+{{ use: partial-label-line(
prefix = "#" + ${prefix},
length = false,
length2 = false,
diff --git a/en/option/series/radar.md b/en/option/series/radar.md
index 36ca6b8..cb2acfc 100644
--- a/en/option/series/radar.md
+++ b/en/option/series/radar.md
@@ -113,6 +113,8 @@ Configurations of select state. Available when
[selectedMode](~series-radar.sele
version = '5.0.0'
) }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
The data in radar chart is multi-variable (dimension). Here is an example:
@@ -140,6 +142,10 @@ Data item name
Numerical value of a single data item.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
{{ use: partial-symbol(
defaultSymbol = "'circle'",
defaultSymbolSize = 4,
@@ -227,6 +233,10 @@ Configurations of selected state.
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/en/option/series/scatter.md b/en/option/series/scatter.md
index 4ed7db9..2ebe7bc 100644
--- a/en/option/series/scatter.md
+++ b/en/option/series/scatter.md
@@ -141,6 +141,8 @@ Configurations of select state. Available when
[selectedMode](~series-scatter.se
{{ use: partial-datasetIndex() }}
+{{ use: partial-series-group-id() }}
+
## data(Array)
{{ use: partial-2d-data-desc() }}
@@ -153,6 +155,10 @@ the name of data item.
the value of data item.
+{{ use: partial-data-group-id(
+ prefix = '##'
+) }}
+
{{ use: partial-symbol(
prefix = "##",
name = "single data"
@@ -243,6 +249,10 @@ Select state of single data.
prefix = "#"
) }}
+{{ use: partial-universal-transition(
+ prefix = "#"
+) }}
+
{{ use: partial-tooltip-in-series() }}
diff --git a/zh/option/series/pie.md b/zh/option/series/pie.md
index a0a27f5..e537728 100644
--- a/zh/option/series/pie.md
+++ b/zh/option/series/pie.md
@@ -308,7 +308,7 @@ const option = {
### labelLine(Object)
-{{ use: partial-pie-label-line(
+{{ use: partial-label-line(
prefix = '###',
length = true,
length2 = true,
@@ -462,7 +462,7 @@ const option = {
#${prefix} labelLine(Object)
-{{ use: partial-pie-label-line(
+{{ use: partial-label-line(
prefix = "#" + ${prefix},
length = false,
length2 = false,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]