You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/09/03 06:18:28 UTC
[incubator-echarts-doc] branch next updated: patch part of the en
docs
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/next by this push:
new fb8a430 patch part of the en docs
fb8a430 is described below
commit fb8a43011e8c7cd5c5158aa31f729673d192fb58
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Sep 3 14:18:16 2020 +0800
patch part of the en docs
---
en/option/component/axis-common.md | 2 +
en/option/component/geo-common.md | 14 ++---
en/option/component/geo.md | 26 +++++----
en/option/component/radar.md | 4 +-
en/option/component/timeline.md | 44 +++++++--------
en/option/component/tooltip.md | 108 +++++++++++++++++++++++++++++++++++++
en/option/component/visual-map.md | 2 +
en/option/partial/label.md | 6 ---
zh/option/series/series.md | 2 +
9 files changed, 157 insertions(+), 51 deletions(-)
diff --git a/en/option/component/axis-common.md b/en/option/component/axis-common.md
index da8a3ec..6008043 100644
--- a/en/option/component/axis-common.md
+++ b/en/option/component/axis-common.md
@@ -185,6 +185,8 @@ The length of the axis tick.
##${prefix} lineStyle(Object)
+Line style of axis ticks.
+
{{ use: partial-line-style(
prefix = '##' + ${prefix},
defaultColor = "'#333'",
diff --git a/en/option/component/geo-common.md b/en/option/component/geo-common.md
index abc1213..9996e6d 100644
--- a/en/option/component/geo-common.md
+++ b/en/option/component/geo-common.md
@@ -150,6 +150,13 @@ Area filling color.
Map area style in highlighted state.
+##${prefix} label(Object)
+
+{{ use: partial-label(
+ prefix = "##" + ${prefix},
+ formatter = true
+) }}
+
##${prefix} itemStyle(Object)
###${prefix} areaColor(Color) = '#eee'
@@ -162,13 +169,6 @@ Area filling color.
prefix = ${prefix} + '##'
) }}
-##${prefix} label(Object)
-
-{{ use: partial-label(
- prefix = "##" + ${prefix},
- formatter = true
-) }}
-
{{ use: partial-rect-layout(
prefix = ${prefix}
) }}
diff --git a/en/option/component/geo.md b/en/option/component/geo.md
index d198d6b..ffe187d 100644
--- a/en/option/component/geo.md
+++ b/en/option/component/geo.md
@@ -75,7 +75,20 @@ Area color in the map.
prefix = '###'
) }}
-#### emphasis(Object)
+### label(Object)
+
+{{ use: partial-label-desc() }}
+
+{{ use: partial-label(
+ prefix = "###",
+ formatter = true
+) }}
+
+### emphasis(Object)
+
+Style of emphasis region.
+
+#### itemStyle(Object)
##### areaColor(Color)
@@ -87,16 +100,7 @@ Area color in the map.
prefix = '####'
) }}
-### label(Object)
-
-{{ use: partial-label-desc() }}
-
-{{ use: partial-label(
- prefix = "###",
- formatter = true
-) }}
-
-#### emphasis(Object)
+#### label(Object)
{{ use: partial-label(
prefix = "####",
diff --git a/en/option/component/radar.md b/en/option/component/radar.md
index 631e0b8..ac4f37d 100644
--- a/en/option/component/radar.md
+++ b/en/option/component/radar.md
@@ -125,7 +125,7 @@ The maximum value of indicator. It is an optional configuration, but we recommen
The minimum value of indicator. It it an optional configuration, with default value of 0.
-## color(string)
+### color(string)
-Specfy a color the the indicator.
+Specfy a color of the indicator.
diff --git a/en/option/component/timeline.md b/en/option/component/timeline.md
index a41924b..03375a5 100644
--- a/en/option/component/timeline.md
+++ b/en/option/component/timeline.md
@@ -223,14 +223,6 @@ Configurations:
textStyleDefaultColor = "'#304654'"
) }}
-### emphasis(Object)
-
-{{ use: partial-timeline-label(
- prefix = "###",
- state = "emphasis",
- textStyleDefaultColor = "'#c23531'"
-) }}
-
## itemStyle(Object)
{{ use: partial-item-style-desc(
@@ -244,15 +236,6 @@ Configurations:
defaultBorderWidth = 1
) }}
-### emphasis(Object)
-
-{{ use: partial-item-style(
- prefix = "###",
- name = "timeline ",
- defaultColor = "'#c23531'",
- defaultBorderWidth = 1
-) }}
-
## checkpointStyle(Object)
Style of the selected item (`checkpoint`).
@@ -360,21 +343,32 @@ Color of button border.
Border width of button.
-### emphasis(Object)
+## emphasis(Object)
-Button style in *highlighted state* (when it's hovered by mouse).
+### label(Object)
-#### color(Color) = '#c23531'
+{{ use: partial-timeline-label(
+ prefix = "###",
+ state = "emphasis",
+ textStyleDefaultColor = "'#c23531'"
+) }}
-Button color.
+### itemStyle(Object)
+
+{{ use: partial-item-style(
+ prefix = "###",
+ name = "timeline ",
+ defaultColor = "'#c23531'",
+ defaultBorderWidth = 1
+) }}
-#### borderColor(Color) = '#c23531'
+### checkpointStyle(Object)
-Color of button border.
+Style of the checkpoint.
-#### borderWidth(number) = 2
+### controlStyle(Object)
-Width of button border.
+Style of the control button.
## data(Array)
diff --git a/en/option/component/tooltip.md b/en/option/component/tooltip.md
index a330b4d..2a238e7 100644
--- a/en/option/component/tooltip.md
+++ b/en/option/component/tooltip.md
@@ -9,6 +9,114 @@ Tooltip component.
{{ use: partial-tooltip-introduction() }}
+<ExampleBaseOption name="tooltip" title="提示框" title-en="Tooltip">
+var base = +new Date(2016, 9, 3);
+var oneDay = 24 * 3600 * 1000;
+var valueBase = Math.random() * 300;
+var valueBase2 = Math.random() * 50;
+var data = [];
+var data2 = [];
+
+for (var i = 1; i < 10; i++) {
+ var now = new Date(base += oneDay);
+ var dayStr = [now.getFullYear(), now.getMonth() + 1, now.getDate()].join('-');
+
+ valueBase = Math.round((Math.random() - 0.5) * 20 + valueBase);
+ valueBase <= 0 && (valueBase = Math.random() * 300);
+ data.push([dayStr, valueBase]);
+
+ valueBase2 = Math.round((Math.random() - 0.5) * 20 + valueBase2);
+ valueBase2 <= 0 && (valueBase2 = Math.random() * 50);
+ data2.push([dayStr, valueBase2]);
+}
+
+const option = {
+ legend: {
+ top: 'bottom',
+ data: ['意向']
+ },
+ tooltip: {
+ triggerOn: 'none',
+ alwaysShowContent: true,
+ position: function (pt) {
+ return [pt[0], 130];
+ }
+ },
+ xAxis: {
+ type: 'time',
+ // boundaryGap: [0, 0],
+ axisPointer: {
+ value: '2016-10-7',
+ snap: true,
+ label: {
+ show: true,
+ formatter: function (params) {
+ return echarts.format.formatTime('yyyy-MM-dd', params.value);
+ }
+ },
+ handle: {
+ show: true
+ }
+ },
+ splitLine: {
+ show: false
+ }
+ },
+ yAxis: {
+ type: 'value',
+ axisTick: {
+ inside: true
+ },
+ splitLine: {
+ show: false
+ },
+ axisLabel: {
+ inside: true
+ },
+ z: 10
+ },
+ grid: {
+ top: 110,
+ left: 15,
+ right: 15,
+ height: 160
+ },
+ series: [
+ {
+ name: '模拟数据',
+ type: 'line',
+ smooth: true,
+ symbol: 'circle',
+ symbolSize: 5,
+ sampling: 'average',
+ itemStyle: {
+ color: '#8ec6ad'
+ },
+ stack: 'a',
+ areaStyle: {
+ },
+ data: data
+ },
+ {
+ name: '模拟数据',
+ type: 'line',
+ smooth: true,
+ stack: 'a',
+ symbol: 'circle',
+ symbolSize: 5,
+ sampling: 'average',
+ itemStyle: {
+ color: '#d68262'
+ },
+ areaStyle: {
+ },
+ data: data2
+ }
+
+ ]
+};
+</ExampleBaseOption>
+
{{ use: partial-tooltip-coords-common(
prefix = '#'
) }}
diff --git a/en/option/component/visual-map.md b/en/option/component/visual-map.md
index b744f2b..7363f14 100644
--- a/en/option/component/visual-map.md
+++ b/en/option/component/visual-map.md
@@ -313,6 +313,8 @@ Possiable visual channels includes:
{{ use: partial-visual-map-visual-type() }}
+---
+
{{ use: partial-visual-map-range(
rangeType = 'outOfRange',
visualMapName = ${visualMapName}
diff --git a/en/option/partial/label.md b/en/option/partial/label.md
index e6b4cd1..c1887fa 100644
--- a/en/option/partial/label.md
+++ b/en/option/partial/label.md
@@ -60,12 +60,6 @@ Whether to move text slightly. For example: `[30, 40]` means move `30` horizonta
) }}
{{ /if }}
-{{ if: ${ellipsis} }}
-#${prefix} ellipsis(boolean) = true
-
-When the text is overflow, whether to replace the excess part with apostrophe.
-{{ /if }}
-
{{ target: partial-label-position }}
diff --git a/zh/option/series/series.md b/zh/option/series/series.md
index 8b13789..4190898 100644
--- a/zh/option/series/series.md
+++ b/zh/option/series/series.md
@@ -1 +1,3 @@
+# series
+系列列表。每个系列通过 `type` 决定自己的图表类型
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org