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 5212cbe format doc
5212cbe is described below
commit 5212cbe61b4306d95c1a312aa0dfe88e2469496e
Author: pissang <[email protected]>
AuthorDate: Tue Jul 6 19:33:17 2021 +0800
format doc
---
zh/option/component/aria.md | 3 +-
zh/option/component/axis-common.md | 1 -
zh/option/component/data-zoom-slider.md | 5 +-
zh/option/component/geo-common.md | 13 +++--
zh/option/component/geo.md | 14 ++---
zh/option/component/legend.md | 1 +
zh/option/component/timeline.md | 7 +--
zh/option/component/visual-map-continuous.md | 3 +-
zh/option/component/visual-map.md | 2 -
zh/option/partial/decal.md | 4 +-
zh/option/partial/focus-blur-scope.md | 2 +
zh/option/partial/group-id.md | 6 ++-
zh/option/partial/item-style.md | 3 +-
zh/option/partial/label-line.md | 4 ++
zh/option/partial/line-border-style.md | 31 +++++------
zh/option/partial/mark-line.md | 1 +
zh/option/partial/state-animation.md | 4 +-
zh/option/partial/tooltip-common.md | 14 ++---
zh/option/partial/universal-transition.md | 2 +-
zh/option/partial/zr-graphic.md | 78 +++-------------------------
zh/option/series/bar.md | 7 +--
zh/option/series/boxplot.md | 2 -
zh/option/series/candlestick.md | 1 +
zh/option/series/effectScatter.md | 1 +
zh/option/series/funnel.md | 1 -
zh/option/series/heatmap.md | 4 +-
zh/option/series/line.md | 2 -
zh/option/series/lines.md | 1 +
zh/option/series/map.md | 2 +-
zh/option/series/pictorialBar.md | 1 -
zh/option/series/pie.md | 7 +--
zh/option/series/themeRiver.md | 1 -
zh/option/series/treemap.md | 4 --
33 files changed, 80 insertions(+), 152 deletions(-)
diff --git a/zh/option/component/aria.md b/zh/option/component/aria.md
index 8df79d5..7f595f3 100644
--- a/zh/option/component/aria.md
+++ b/zh/option/component/aria.md
@@ -197,8 +197,6 @@ option = {
需要注意的是,通常最后一个数据后是系列的 `separator.end`,所以 `data.separator.end` 在大多数情况下为空字符串。
-
-
## decal(Object)
为系列数据增加贴花纹理,作为颜色的辅助,帮助区分数据。使用默认贴花图案的方式非常简单,只需要开启即可:
@@ -227,3 +225,4 @@ aria: {
{{ use: partial-decal(
prefix = "###"
) }}
+
diff --git a/zh/option/component/axis-common.md
b/zh/option/component/axis-common.md
index 77f4d51..4cd787b 100644
--- a/zh/option/component/axis-common.md
+++ b/zh/option/component/axis-common.md
@@ -895,4 +895,3 @@ xAxis: {
},
```
-
diff --git a/zh/option/component/data-zoom-slider.md
b/zh/option/component/data-zoom-slider.md
index f8d0c86..fb806a7 100644
--- a/zh/option/component/data-zoom-slider.md
+++ b/zh/option/component/data-zoom-slider.md
@@ -132,7 +132,6 @@ const option = {
{{ use: partial-icon-image-path() }}
-
## handleSize(number|string) = '100%'
<ExampleUIControlPercent min="0" step="1" default="100%" />
@@ -248,7 +247,6 @@ labelFormatter: function (value) {
componentName = 'dataZoom-slider'
) }}
-
## brushSelect(boolean) = true
{{ use: partial-version(
@@ -290,4 +288,5 @@ labelFormatter: function (value) {
{{ use: partial-item-style(
prefix = "###"
-) }}
\ No newline at end of file
+) }}
+
diff --git a/zh/option/component/geo-common.md
b/zh/option/component/geo-common.md
index aa3a8c4..2390562 100644
--- a/zh/option/component/geo-common.md
+++ b/zh/option/component/geo-common.md
@@ -40,7 +40,6 @@ $.get('map/china_geo.json', function (chinaJson) {
如上所示,ECharts 可以使用 [GeoJSON](http://geojson.org/) 格式的数据作为地图的轮廓,你可以获取第三方的
[GeoJSON](http://geojson.org/) 数据注册到 ECharts 中。例如第三方资源
[maps](https://github.com/echarts-maps)。
-
{{ if: ${inMap} }}
**SVG 引入示例**
```js
@@ -76,7 +75,6 @@ $.get('map/topographic_map.svg', function (svg) {
如上所示,ECharts 也可以使用 SVG 格式的地图。详情参见:[SVG
底图](tutorial.html#%E5%9C%B0%E7%90%86%E5%9D%90%E6%A0%87%E7%B3%BB%E5%92%8C%E5%9C%B0%E5%9B%BE%E7%B3%BB%E5%88%97%E7%9A%84%20SVG%20%E5%BA%95%E5%9B%BE)。
-
#${prefix} roam(boolean|string) = false
{{ use: partial-roam() }}
@@ -182,7 +180,9 @@ boundingCoords: [
高亮状态下的多边形和标签样式。
{{ if: !${inMap} }}
-{{ use: partial-focus-blur-scope(isGeoCoordSys: true) }}
+{{ use: partial-focus-blur-scope(
+ isGeoCoordSys = true
+) }}
{{ /if }}
{{ use: partial-geo-common-state(
@@ -199,7 +199,11 @@ boundingCoords: [
{{ if: !${inMap} }}
#${prefix} blur(Object)
-{{ use: partial-version(version: '5.1.0') }}
+
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
+
淡出状态下的多边形和标签样式。
{{ use: partial-geo-common-state(
@@ -207,7 +211,6 @@ boundingCoords: [
) }}
{{ /if }}
-
{{ use: partial-rect-layout(
prefix = ${prefix}
) }}
diff --git a/zh/option/component/geo.md b/zh/option/component/geo.md
index ba22411..6f54d0f 100644
--- a/zh/option/component/geo.md
+++ b/zh/option/component/geo.md
@@ -95,20 +95,21 @@ geo 区域的颜色也可以被 map series 所控制,参见 [series-map.geoInd
{{ use: geo-region-state() }}
### blur(Object)
-{{ use: partial-version(version: '5.1.0') }}
+
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
+
淡出状态的设置。
{{ 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 = "#"
) }}
@@ -119,6 +120,7 @@ geo 区域的颜色也可以被 map series 所控制,参见 [series-map.geoInd
) }}
+
{{ target: geo-region-state }}
#### itemStyle(Object)
diff --git a/zh/option/component/legend.md b/zh/option/component/legend.md
index 3e3487a..944f159 100644
--- a/zh/option/component/legend.md
+++ b/zh/option/component/legend.md
@@ -598,3 +598,4 @@ ${name}图形中线的样式,用于诸如折线图图例横线的样式设置
defaultShadowOffsetX = 0,
defaultShadowOffsetY = 0
) }}
+
diff --git a/zh/option/component/timeline.md b/zh/option/component/timeline.md
index 81c56bd..752196a 100644
--- a/zh/option/component/timeline.md
+++ b/zh/option/component/timeline.md
@@ -85,8 +85,7 @@ myChart.setOption({
<br>
**`finalOption` 是怎么计算出来的?**
-{{ use: partial-timeline-merge-strategy }}
-
+{{ use: partial-timeline-merge-strategy() }}
<br>
**兼容 ECharts4**
@@ -524,7 +523,7 @@ const option = {
## replaceMerge(Array|string) = undefined
-{{ use: partial-timeline-merge-strategy }}
+{{ use: partial-timeline-merge-strategy() }}
<br>
@@ -534,7 +533,6 @@ const option = {
参见这个
[示例](${galleryEditorPath}doc-example/timeline-dynamic-series&edit=1&reset=1)。
-
## controlPosition(string) = 'left'
<ExampleUIControlEnum options="left,right" />
@@ -795,7 +793,6 @@ const option = {
textStyleDefaultColor = "'#6f778d'"
) }}
-
## emphasis(Object)
### label(Object)
diff --git a/zh/option/component/visual-map-continuous.md
b/zh/option/component/visual-map-continuous.md
index 9d61e9d..3ab2216 100644
--- a/zh/option/component/visual-map-continuous.md
+++ b/zh/option/component/visual-map-continuous.md
@@ -208,7 +208,6 @@ formatter: function (value) {
defaultBorderWidth = 1
) }}
-
## indicatorIcon(string) = 'circle'
指示器的形状,默认为圆形。指示器在鼠标移到组件上,或者在移到系列图形上联动高亮的时候出现。
@@ -219,7 +218,6 @@ formatter: function (value) {
<ExampleUIControlIcon />
-
## indicatorSize(number|string) = '50%'
{{ use: partial-version(
@@ -241,3 +239,4 @@ formatter: function (value) {
defaultShadowOffsetY = 1,
defaultShadowColor = 'rgba(0,0,0,0.2)'
) }}
+
diff --git a/zh/option/component/visual-map.md
b/zh/option/component/visual-map.md
index 8f6e5c3..962cfbe 100644
--- a/zh/option/component/visual-map.md
+++ b/zh/option/component/visual-map.md
@@ -289,7 +289,6 @@ chart.setOption(option); // option设置回 ${componentMainType}
反之,鼠标悬浮到图表中的图形元素上时,在 `visualMap` 组件的相应位置会有三角提示其所对应的数值。
-
## inRange(Object)
定义 **在选中范围中** 的视觉元素。(用户可以和 visualMap 组件交互,用鼠标或触摸选择范围)
@@ -332,7 +331,6 @@ visualMap 组件中,`控制器` 的 `inRange` `outOfRange` 设置。如果没
配置参考 [${visualMapName}.inRange](~${visualMapName}.inRange)
-
{{ use: partial-rect-layout(
componentName = "visualMap ",
defaultZ = "4",
diff --git a/zh/option/partial/decal.md b/zh/option/partial/decal.md
index 746fa02..9a3f60d 100644
--- a/zh/option/partial/decal.md
+++ b/zh/option/partial/decal.md
@@ -1,3 +1,4 @@
+
{{ target: partial-decal-desc }}
图形的贴花图案,在 [aria.enabled](~aria.enabled) 与 [aria.decal.show](~aria.decal.show)
都是 `true` 的情况下才生效。
@@ -5,9 +6,7 @@
如果为 `'none'` 表示不使用贴花图案。
{{ if: ${onlyWithAreaStyle} }}
-
需要在设置了填充样式 `areaStyle` 的情况下才生效。
-
{{ /if }}
@@ -77,3 +76,4 @@
#${prefix|default('#')} maxTileHeight(number) = 512
生成的图案在未重复之前的高度上限。通常不需要设置该值,当你发现图案在重复的时候出现不连续的接缝时,可以尝试提高该值。
+
diff --git a/zh/option/partial/focus-blur-scope.md
b/zh/option/partial/focus-blur-scope.md
index 216099f..422e66e 100644
--- a/zh/option/partial/focus-blur-scope.md
+++ b/zh/option/partial/focus-blur-scope.md
@@ -17,6 +17,7 @@
+ `'none'` 不淡出其它图形,默认使用该配置。
+ `'self'` 只聚焦(不淡出)当前高亮的数据的图形。
+
{{ if: !${isGeoCoordSys} }}
+ `'series'` 聚焦当前高亮的数据所在的系列的所有图形。
{{ /if }}
@@ -67,3 +68,4 @@ emphasis: {
+ `'series'` 淡出范围为系列。
+ `'global'` 淡出范围为全局。
{{ /if }}
+
diff --git a/zh/option/partial/group-id.md b/zh/option/partial/group-id.md
index 5c58c0b..59393a8 100644
--- a/zh/option/partial/group-id.md
+++ b/zh/option/partial/group-id.md
@@ -1,3 +1,4 @@
+
{{ target: partial-series-group-id }}
## dataGroupId(string)
@@ -6,8 +7,11 @@
如果你使用了[dataset](~dataset)组件来表达数据,推荐使用`encode.itemGroupID`来指定哪个维度被编码为组 ID。
+
+
{{ target: partial-data-group-id }}
#${prefix} groupId(string)
-该数据项的组 ID。组 ID 会被用于分类数据,并在全局过渡动画中决定如何进行合并和分裂动画。
\ No newline at end of file
+该数据项的组 ID。组 ID 会被用于分类数据,并在全局过渡动画中决定如何进行合并和分裂动画。
+
diff --git a/zh/option/partial/item-style.md b/zh/option/partial/item-style.md
index 50e28f7..15bf47d 100644
--- a/zh/option/partial/item-style.md
+++ b/zh/option/partial/item-style.md
@@ -56,7 +56,6 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") +
"描边线宽。为
) }}
{{ if: ${useDecal} }}
-
#${prefix} decal(Object) = ${defaultDecal}
{{ use: partial-decal-desc(
@@ -66,5 +65,5 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") +
"描边线宽。为
{{ use: partial-decal(
prefix = '#' + ${prefix}
) }}
-
{{ /if }}
+
diff --git a/zh/option/partial/label-line.md b/zh/option/partial/label-line.md
index a176458..96bb7d1 100644
--- a/zh/option/partial/label-line.md
+++ b/zh/option/partial/label-line.md
@@ -1,7 +1,10 @@
+
{{ target: partial-label-line-desc }}
标签的视觉引导线配置。
+
+
{{ target: partial-label-line }}
#${prefix} show(boolean)
@@ -53,3 +56,4 @@
{{ use: partial-line-style(
prefix = "#" + ${prefix}
) }}
+
diff --git a/zh/option/partial/line-border-style.md
b/zh/option/partial/line-border-style.md
index a656f54..78e0a63 100644
--- a/zh/option/partial/line-border-style.md
+++ b/zh/option/partial/line-border-style.md
@@ -1,8 +1,10 @@
+
{{ target: partial-line-border-style }}
{{ if: ${type} === 'border' }}
#${prefix} borderType(string|number|Array) = ${defaultType|default("'solid'")}
-{{ elif: ${type} === 'text' }}
+
+{{ elif: ${type} === 'text' }}
#${prefix} textBorderType(string|number|Array) =
${defaultType|default("'solid'")}
{{ else }}
#${prefix} type(string|number|Array) = ${defaultType|default("'solid'")}
@@ -12,7 +14,8 @@
{{ if: ${type} === 'border' }}
${name}描边类型。
-{{ elif: ${type} === 'text' }}
+
+{{ elif: ${type} === 'text' }}
文字本身的描边类型。
{{ else }}
线的类型。
@@ -25,7 +28,7 @@ ${name}描边类型。
自 `v5.0.0` 开始,也可以是 `number` 或者 `number` 数组,用以指定线条的 [dash
array](https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/stroke-dasharray),配合
{{ if: ${type} === 'border' }}
`borderDashOffset`
-{{ elif: ${type} === 'text' }}
+{{ elif: ${type} === 'text' }}
`textBorderDashOffset`
{{ else }}
`dashOffset`
@@ -34,15 +37,17 @@ ${name}描边类型。
例如:
```js
{
- {{ if: ${type} === 'border' }}borderType{{ elif: ${type} === 'text'
}}textBorderType{{ else }}type{{ /if }}: [5, 10],
- {{ if: ${type} === 'border' }}borderDashOffset{{ elif: ${type} ===
'text' }}textBorderDashOffset{{ else }}dashOffset{{ /if }}: 5
+
+{{ if: ${type} === 'border' }}borderType{{ elif: ${type} === 'text'
}}textBorderType{{ else }}type{{ /if }}: [5, 10],
+
+{{ if: ${type} === 'border' }}borderDashOffset{{ elif: ${type} === 'text'
}}textBorderDashOffset{{ else }}dashOffset{{ /if }}: 5
}
```
-
{{ 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)}
@@ -56,7 +61,7 @@ ${name}描边类型。
用于设置虚线的偏移量,可搭配 {{ if: ${type} === 'border' }}
`borderType`
-{{ elif: ${type} === 'text' }}
+{{ elif: ${type} === 'text' }}
`textBorderType`
{{ else }}
`type`
@@ -64,9 +69,7 @@ ${name}描边类型。
更多详情可以参考 MDN
[lineDashOffset](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)。
-
{{ if: !${noCap} }}
-
{{ if: ${type} === 'border' }}
#${prefix} borderCap(string) = ${defaultCap|default('butt')}
{{ else }}
@@ -85,12 +88,9 @@ ${name}描边类型。
+ `'square'`: 线段末端以方形结束,但是增加了一个宽度和线段相同,高度是线段厚度一半的矩形区域。
默认值为 `'butt'`。 更多详情可以参考 MDN
[lineCap](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineCap)。
-
{{ /if }}
-
{{ if: !${noJoin} }}
-
{{ if: ${type} === 'border' }}
#${prefix} borderJoin(string) = ${defaultJoin|default('bevel')}
{{ else }}
@@ -115,12 +115,9 @@ ${name}描边类型。
{{ /if }} 属性看到效果。
默认值为 `'bevel'`。 更多详情可以参考 MDN
[lineJoin](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineJoin)。
-
{{ /if }}
-
{{ if: !${noMiterLimit} }}
-
{{ if: ${type} === 'border' }}
#${prefix} borderMiterLimit(number) = ${defaultMiterLimit|default(10)}
{{ else }}
@@ -146,5 +143,5 @@ ${name}描边类型。
默认值为 `10`。负数、`0`、`Infinity` 和 `NaN` 均会被忽略。
更多详情可以参考 MDN
[miterLimit](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/miterLimit)。
+{{ /if }}
-{{ /if }}
\ No newline at end of file
diff --git a/zh/option/partial/mark-line.md b/zh/option/partial/mark-line.md
index a6cfb74..78234e7 100644
--- a/zh/option/partial/mark-line.md
+++ b/zh/option/partial/mark-line.md
@@ -219,6 +219,7 @@ data: [
) }}
+
{{ target: mark-line-data-item-item }}
{{ if: ${hasType} }}
diff --git a/zh/option/partial/state-animation.md
b/zh/option/partial/state-animation.md
index 4694d30..71111bd 100644
--- a/zh/option/partial/state-animation.md
+++ b/zh/option/partial/state-animation.md
@@ -1,3 +1,4 @@
+
{{ target: partial-state-animation }}
#${prefix} duration(number) = ${defaultDuration|default(300)}
@@ -10,4 +11,5 @@
<ExampleUIControlEnum
options="linear,quadraticIn,quadraticOut,quadraticInOut,cubicIn,cubicOut,cubicInOut,quarticIn,quarticOut,quarticInOut,quinticIn,quinticOut,quinticInOut,sinusoidalIn,sinusoidalOut,sinusoidalInOut,exponentialIn,exponentialOut,exponentialInOut,circularIn,circularOut,circularInOut,elasticIn,elasticOut,elasticInOut,backIn,backOut,backInOut,bounceIn,bounceOut,bounceInOut"
/>
-状态切换的动画缓动。
\ No newline at end of file
+状态切换的动画缓动。
+
diff --git a/zh/option/partial/tooltip-common.md
b/zh/option/partial/tooltip-common.md
index cb67ca1..9fe999c 100644
--- a/zh/option/partial/tooltip-common.md
+++ b/zh/option/partial/tooltip-common.md
@@ -23,7 +23,9 @@
## tooltip(Object)
{{ if: ${version} }}
-{{ use: partial-version(version: '5.1.0') }}
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
{{ /if }}
本坐标系特定的 tooltip 设定。
@@ -49,7 +51,9 @@
### tooltip(*)
{{ if: ${version} }}
-{{ use: partial-version(version: '5.1.0') }}
+{{ use: partial-version(
+ version = '5.1.0'
+) }}
{{ /if }}
本 ${componentItemDesc} 中特定的 tooltip 设定。
@@ -78,6 +82,7 @@
) }}
+
{{ target: partial-tooltip-in-series-data }}
### tooltip(*)
@@ -91,7 +96,6 @@
-
{{ target: partial-tooltip-scope-tip }}
{{ if: ${scope} === 'series' }}
@@ -138,8 +142,6 @@
什么都不触发。
-
-
#${prefix} axisPointer(Object)
坐标轴指示器配置项。
@@ -195,10 +197,10 @@
defaultAnimationEasingUpdate = 'exponentialOut',
defaultAnimationDurationUpdate = 200
) }}
-
{{ /if }}
+
{{ target: partial-tooltip-common }}
#${prefix} position(string|Array|Function)
diff --git a/zh/option/partial/universal-transition.md
b/zh/option/partial/universal-transition.md
index 90b9588..db7eda2 100644
--- a/zh/option/partial/universal-transition.md
+++ b/zh/option/partial/universal-transition.md
@@ -1,3 +1,4 @@
+
{{ target: partial-universal-transition }}
#${prefix} universalTransition(object)
@@ -14,7 +15,6 @@
是否开启全局过渡动画。
-
##${prefix} seriesKey(string | Array)
`seriesKey`决定了如何关联需要动画的系列,未配置时会默认取系列的`id`。
diff --git a/zh/option/partial/zr-graphic.md b/zh/option/partial/zr-graphic.md
index 2cfbe06..c5ef1db 100644
--- a/zh/option/partial/zr-graphic.md
+++ b/zh/option/partial/zr-graphic.md
@@ -60,11 +60,6 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
-
{{ if: ${usageType} === 'customSeries' }}
#${prefix} ${hostName}${symbolDeclare}path(Object)
@@ -144,8 +139,6 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
symbolDeclare = ${symbolDeclare}
) }}
-
-
##${prefix} style(Object)
{{ use: partial-graphic-cpt-style-prop-common(
@@ -178,13 +171,8 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
symbolVisit = ${symbolVisit},
symbolDeclare = ${symbolDeclare}
) }}
-
{{ /if }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}image(Object)
{{ use: partial-graphic-cpt-common-props(
@@ -230,7 +218,6 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
symbolDeclare = ${symbolDeclare}
) }}
-
{{ use: partial-graphic-cpt-focus-blur(
prefix = ${prefix}
) }}
@@ -253,10 +240,6 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}text(Object)
文本块。
@@ -343,10 +326,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}rect(Object)
矩形。
@@ -403,7 +382,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
##${prefix} style(Object)
{{ use: partial-graphic-cpt-style-prop-common(
@@ -437,10 +415,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}circle(Object)
圆。
@@ -519,10 +493,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}ring(Object)
圆环。
@@ -601,10 +571,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}sector(Object)
扇形。
@@ -692,10 +658,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}arc(Object)
圆弧。
@@ -786,10 +748,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}polygon(Object)
多边形。
@@ -859,10 +817,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}polyline(Object)
折线。
@@ -935,10 +889,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}line(Object)
直线。
@@ -1015,10 +965,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
symbolDeclare = ${symbolDeclare}
) }}
-
-
-
-
#${prefix} ${hostName}${symbolDeclare}bezierCurve(Object)
二次或三次贝塞尔曲线。
@@ -1110,11 +1056,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
-
-
-
-
-
{{ target: partial-graphic-cpt-common-props }}
##${prefix} type(string) = ${type}
@@ -1134,9 +1075,7 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
id 用于在更新或删除图形元素时指定更新哪个图形元素,如果不需要用可以忽略。
-
{{ if: ${usageType} === 'graphicComponent' }}
-
##${prefix} $action(string) = 'merge'
setOption 时指定本次对该图形元素的操作行为。
@@ -1220,11 +1159,8 @@ transition: [] // 一个空数组
```
看这个
[例子](${galleryEditorPath}doc-example/custom-transition-simple&edit=1&reset=1)。
-
{{ /if }}
-
-
{{ if: ${usageType} === 'customSeries' && ${enableMorph} }}
##${prefix} morph(boolean) = false
@@ -1247,12 +1183,8 @@ transition: [] // 一个空数组
参见示例:[custom-one-to-one-morph](${galleryEditorPath}custom-one-to-one-morph&edit=1&reset=1)
和
[custom-combine-separate-morph](${galleryEditorPath}custom-combine-separate-morph&edit=1&reset=1)。
-
-
{{ /if }}
-
-
{{ if: ${usageType} === 'graphicComponent' }}
##${prefix} left(number|string) = undefined
@@ -1367,6 +1299,7 @@ chart.on('click', function (params) {
##${prefix} textContent(Object)
这是一个文本定义,附着在一个节点上,会依据 `textConfig` 配置,相对于节点布局。
+
{{ if: ${usageType} === 'customSeries' }}
里面的属性同于 [text](option.html#series-custom.renderItem.return_text)。
{{ else }}
@@ -1490,11 +1423,11 @@ Position of `textContent`.
如果确定文本是在节点中的话,则此可设置为 `true`,避免 echarts 额外猜测。
-
{{ if: ${usageType} === 'customSeries' }}
{{ use: partial-custom-series-during(
prefix = ${prefix}
) }}
+
{{ use: partial-custom-series-extra(
prefix = ${prefix},
optionPath = ${optionPath},
@@ -1573,7 +1506,6 @@ Position of `textContent`.
-
{{ target: partial-graphic-cpt-path-common }}
###${prefix} points(Array)
@@ -1620,7 +1552,6 @@ Position of `textContent`.
{{ target: partial-graphic-cpt-sub-prop-transition }}
{{ if: ${usageType} === 'customSeries' }}
-
###${prefix} transition(string|Array) = undefined
可以是一个属性名,或者一组属性名。
@@ -1659,7 +1590,6 @@ renderItem: function (params, api) {
};
}
```
-
{{ /if }}
@@ -1889,6 +1819,8 @@ renderItem: function (params, api) {
+ transform 中设定的坐标,都是相对于图形元素的父元素的(即
[group](~${optionPath}.${hostName}${symbolVisit}group) 元素或者顶层画布)的 `[0, 0]`
点。也就是说,我们可以使用 [group](~${optionPath}.${hostName}${symbolVisit}group)
来组织多个图形元素,并且 [group](~${optionPath}.${hostName}${symbolVisit}group) 可以嵌套。
+ 对于一个图形元素,`transform` 执行的顺序是:先缩放(依照 `scaleX`,`scaleY`),再旋转(依照
`rotation`),再平移(依照 `x`,`y`)。
+
+
{{ target: partial-graphic-cpt-focus-blur }}
##${prefix} focus(string) = 'none'
@@ -1916,6 +1848,7 @@ renderItem: function (params, api) {
+ `'global'` 淡出范围为全局。
+
{{ target: partial-graphic-cpt-style-emphasis }}
{{ if: ${usageType} === 'customSeries' }}
@@ -2071,3 +2004,4 @@ type TransformProp =
```
也参见这个 [例子](${galleryEditorPath}custom-spiral-race&edit=1&reset=1)。
+
diff --git a/zh/option/series/bar.md b/zh/option/series/bar.md
index 28a6381..50b357a 100644
--- a/zh/option/series/bar.md
+++ b/zh/option/series/bar.md
@@ -209,7 +209,6 @@ option = {
+ `'min'` 取过滤点的最小值
+ `'sum'` 取过滤点的和
-
{{ use: partial-cursor() }}
{{ use: partial-barGrid(
@@ -349,7 +348,7 @@ option = {
是否开启标签的数字动画。
参考这个
[示例](${galleryEditorPath}doc-example/value-animation-simple&edit=1&reset=1)。
-{{/if}}
+{{ /if }}
#${prefix} labelLine(Object)
@@ -414,9 +413,7 @@ option = {
prefix = ${prefix}
) }}
-
{{ if: ${useDecal} }}
-
#${prefix} decal(Object)
{{ use: partial-decal-desc() }}
@@ -424,5 +421,5 @@ option = {
{{ use: partial-decal(
prefix = '#' + ${prefix}
) }}
-
{{ /if }}
+
diff --git a/zh/option/series/boxplot.md b/zh/option/series/boxplot.md
index 9127fc4..83f9820 100644
--- a/zh/option/series/boxplot.md
+++ b/zh/option/series/boxplot.md
@@ -292,11 +292,9 @@ ECharts 并不内置对原始数据的处理,输入给 `boxplot` 的数据须
defaultAnimationDuration = 800
) }}
-
{{ use: partial-universal-transition(
prefix = "#"
) }}
-
{{ use: partial-tooltip-in-series() }}
diff --git a/zh/option/series/candlestick.md b/zh/option/series/candlestick.md
index 4c18e5f..29348e9 100644
--- a/zh/option/series/candlestick.md
+++ b/zh/option/series/candlestick.md
@@ -346,6 +346,7 @@ K 线图的选中状态。开启 [selectedMode](~series-candlestick.selectedMode
) }}
{{ use: partial-series-group-id() }}
+
## data(Array)
数据格式是如下的二维数组。
diff --git a/zh/option/series/effectScatter.md
b/zh/option/series/effectScatter.md
index e225992..f89ac0d 100644
--- a/zh/option/series/effectScatter.md
+++ b/zh/option/series/effectScatter.md
@@ -289,6 +289,7 @@ const option = {
{{ use: partial-tooltip-in-series() }}
+
{{ target: effectScatter-state }}
#${prefix} label(Object)
diff --git a/zh/option/series/funnel.md b/zh/option/series/funnel.md
index 7383810..48ccc1f 100644
--- a/zh/option/series/funnel.md
+++ b/zh/option/series/funnel.md
@@ -192,7 +192,6 @@ option = {
prefix = "#"
) }}
-
{{ use: partial-series-group-id() }}
## data(Array)
diff --git a/zh/option/series/heatmap.md b/zh/option/series/heatmap.md
index 14ef509..91e4c31 100644
--- a/zh/option/series/heatmap.md
+++ b/zh/option/series/heatmap.md
@@ -171,7 +171,6 @@ option = {
{{ use: partial-datasetIndex() }}
-
{{ use: partial-series-group-id() }}
## data(Array)
@@ -239,6 +238,7 @@ option = {
{{ use: partial-tooltip-in-series() }}
+
{{ target: heatmap-state }}
#${prefix} itemStyle(Object)
@@ -254,7 +254,7 @@ option = {
defaultPosition = "inside"
) }}
-
{{ use: partial-universal-transition(
prefix = "#"
) }}
+
diff --git a/zh/option/series/line.md b/zh/option/series/line.md
index df76029..e2cf1eb 100644
--- a/zh/option/series/line.md
+++ b/zh/option/series/line.md
@@ -400,7 +400,6 @@ const option = {
defaultAnimationEasing = 'linear'
) }}
-
{{ use: partial-universal-transition(
prefix = "#"
) }}
@@ -426,7 +425,6 @@ const option = {
prefix = '###'
) }}
-
### itemStyle(Object)
{{ use: partial-item-style(
diff --git a/zh/option/series/lines.md b/zh/option/series/lines.md
index 00d01f0..96da190 100644
--- a/zh/option/series/lines.md
+++ b/zh/option/series/lines.md
@@ -285,6 +285,7 @@ ECharts 2.x 里会用地图上的 `markLine` 去绘制迁徙效果,在 ECharts
) }}
+
{{ target: lines-label }}
#${prefix} show(boolean) = ${defaultShowLabel|default(false)}
diff --git a/zh/option/series/map.md b/zh/option/series/map.md
index d4afa24..9fadc8e 100644
--- a/zh/option/series/map.md
+++ b/zh/option/series/map.md
@@ -155,7 +155,6 @@
prefix = "#"
) }}
-
{{ use: partial-universal-transition(
prefix = "#"
) }}
@@ -194,3 +193,4 @@
{{ use: partial-label-line(
prefix = '####'
) }}
+
diff --git a/zh/option/series/pictorialBar.md b/zh/option/series/pictorialBar.md
index cceec92..a26f08e 100644
--- a/zh/option/series/pictorialBar.md
+++ b/zh/option/series/pictorialBar.md
@@ -679,7 +679,6 @@ series: [{
formatter = ${prefix} === '##'
) }}
-
#${prefix} labelLine(Object)
{{ use: partial-label-line-desc() }}
diff --git a/zh/option/series/pie.md b/zh/option/series/pie.md
index e537728..9a62647 100644
--- a/zh/option/series/pie.md
+++ b/zh/option/series/pie.md
@@ -389,7 +389,6 @@ const option = {
prefix = "#"
) }}
-
{{ use: partial-universal-transition(
prefix = "#"
) }}
@@ -448,8 +447,6 @@ const option = {
-
-
{{ target: pie-state }}
#${prefix} label(Object)
@@ -481,7 +478,6 @@ const option = {
-
{{ target: partial-pie-border-radius }}
#${prefix} borderRadius(number|string|Array)
@@ -497,4 +493,5 @@ const option = {
+ `borderRadius: 10`:表示内圆角半径和外圆角半径都是 `10px`。
+ `borderRadius: '20%'`:表示内圆角半径和外圆角半径都是饼图扇形区块半径的 `20%`。
+ `borderRadius: [10, 20]`:表示当饼图为环形图时,表示内圆角半径是 `10px`、外圆角半径是 `20px`。
-+ `borderRadius: ['20%', '50%']`:表示当饼图为环形图时,内圆角半径是内圆半径的 `20%`、外圆角半径是外圆半径的
`50%`。
\ No newline at end of file
++ `borderRadius: ['20%', '50%']`:表示当饼图为环形图时,内圆角半径是内圆半径的 `20%`、外圆角半径是外圆半径的
`50%`。
+
diff --git a/zh/option/series/themeRiver.md b/zh/option/series/themeRiver.md
index 4fb8780..08c3daa 100644
--- a/zh/option/series/themeRiver.md
+++ b/zh/option/series/themeRiver.md
@@ -257,7 +257,6 @@ data: [
defaultFontSize = 11
) }}
-
#${prefix} labelLine(Object)
{{ use: partial-label-line-desc() }}
diff --git a/zh/option/series/treemap.md b/zh/option/series/treemap.md
index cdfbf3d..d003fda 100644
--- a/zh/option/series/treemap.md
+++ b/zh/option/series/treemap.md
@@ -348,7 +348,6 @@ const option = {
defaultColor = "#fff"
) }}
-
## labelLine(Object)
{{ use: partial-label-line-desc() }}
@@ -361,7 +360,6 @@ const option = {
smooth = true
) }}
-
## labelLayout(Object|Function)
{{ use: partial-label-layout(
@@ -871,7 +869,6 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
{{ use: partial-decal(
prefix = '#' + ${prefix}
) }}
-
{{ /if }}
@@ -888,7 +885,6 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
{{ target: treemap-state }}
-
#${prefix} label(Object)
{{ use: partial-label(
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]