From 169af79e808bfbb47f5a5a464118bd817325e652 Mon Sep 17 00:00:00 2001 From: huanglp Date: Wed, 3 Aug 2022 15:08:22 +0800 Subject: [PATCH 01/13] fix:delete aciton: hightlight and downplay --- en/api/action.md | 48 ------------------------------------------------ zh/api/action.md | 46 ---------------------------------------------- 2 files changed, 94 deletions(-) diff --git a/en/api/action.md b/en/api/action.md index 81cfcaf8b..2b6f4114c 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -36,54 +36,6 @@ Chart actions supported by ECharts are triggered through [dispatchAction](~echar **Attention: ** The `?:` note in the code shows that this attribute is optional. *EVENT:* stands for the event that triggers action. -## highlight(Action) - -Highlights specified data graphics. - -```ts -// If highlight series: -dispatchAction({ - type: 'highlight', - - {{ use: action-series-query }} - - {{ use: action-data-query-multiple }} -}); - -// If highlight geo component (since v5.1.0): -dispatchAction({ - type: 'highlight', - - {{ use: action-component-query(componentType = 'geo') }} - - {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} -}); -``` - - -## downplay(Action) - -Downplay specified data graphics. - -```ts -// If downplay series: -dispatchAction({ - type: 'downplay', - - {{ use: action-series-query }} - - {{ use: action-data-query-multiple }} -}); - -// If downplay geo component (since v5.1.0): -dispatchAction({ - type: 'downplay', - - {{ use: action-component-query(componentType = 'geo') }} - - {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} -}); -``` ## select(Action) diff --git a/zh/api/action.md b/zh/api/action.md index 9b3c256c8..d40faf92c 100644 --- a/zh/api/action.md +++ b/zh/api/action.md @@ -35,53 +35,7 @@ ECharts 中支持的图表行为,通过 [dispatchAction](~echartsInstance.disp **注:** 代码中的 `?:` 表示该属性是可选的。*EVENT:* 是 action 对应触发的事件。 -## highlight(Action) -高亮指定的数据图形。 - -```ts -// 如果要高亮系列: -dispatchAction({ - type: 'highlight', - - {{ use: action-series-query }} - - {{ use: action-data-query-multiple }} -}); - -// 如果要高亮 geo 组件(从 `v5.1.0` 开始支持): -dispatchAction({ - type: 'highlight', - - {{ use: action-component-query(componentType = 'geo') }} - - {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} -}); -``` - -## downplay(Action) - -取消高亮指定的数据图形。 - -```ts -// 如果要取消高亮系列: -dispatchAction({ - type: 'downplay', - - {{ use: action-series-query }} - - {{ use: action-data-query-multiple }} -}) - -// 如果要取消高亮 geo 组件(从 `v5.1.0` 开始支持): -dispatchAction({ - type: 'downplay', - - {{ use: action-component-query(componentType = 'geo') }} - - {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} -}); -``` ## select(Action) From 2363da2798a41097ffaacf72868c26ea0fa876dc Mon Sep 17 00:00:00 2001 From: huanglp Date: Wed, 3 Aug 2022 15:34:07 +0800 Subject: [PATCH 02/13] fix:delete events: hightlight and downplay --- en/api/events.md | 10 ---------- zh/api/events.md | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/en/api/events.md b/en/api/events.md index 1ef9c41bb..254bcba51 100644 --- a/en/api/events.md +++ b/en/api/events.md @@ -80,17 +80,7 @@ See [Events and actions in ECharts](tutorial.html#Events%20and%20actions%20in%20 ### globalout(Event) ### contextmenu(Event) -## highlight(Event) -**ACTION:** [highlight](~action.highlight) - -Event of data highlight. - -## downplay(Event) - -**ACTION:** [downplay](~action.downplay) - -Event of data downplay. ## selectchanged(Event) diff --git a/zh/api/events.md b/zh/api/events.md index 4f79f6113..54af7d437 100644 --- a/zh/api/events.md +++ b/zh/api/events.md @@ -77,17 +77,7 @@ chart.on('mouseover', {seriesIndex: 1, name: 'xx'}, function (params) { ### globalout(Event) ### contextmenu(Event) -## highlight(Event) -**ACTION:** [highlight](~action.highlight) - -高亮事件。 - -## downplay(Event) - -**ACTION:** [downplay](~action.downplay) - -取消高亮事件。 ## selectchanged(Event) From 45532b2900dd29bd68a7296bcac2f3d00b84d8b3 Mon Sep 17 00:00:00 2001 From: huanglp Date: Tue, 16 Aug 2022 10:14:54 +0800 Subject: [PATCH 03/13] revert:hightlight and downplay aciton and event --- en/api/action.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ en/api/events.md | 10 ++++++++++ zh/api/action.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ zh/api/events.md | 10 ++++++++++ 4 files changed, 114 insertions(+) diff --git a/en/api/action.md b/en/api/action.md index 2b6f4114c..81cfcaf8b 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -36,6 +36,54 @@ Chart actions supported by ECharts are triggered through [dispatchAction](~echar **Attention: ** The `?:` note in the code shows that this attribute is optional. *EVENT:* stands for the event that triggers action. +## highlight(Action) + +Highlights specified data graphics. + +```ts +// If highlight series: +dispatchAction({ + type: 'highlight', + + {{ use: action-series-query }} + + {{ use: action-data-query-multiple }} +}); + +// If highlight geo component (since v5.1.0): +dispatchAction({ + type: 'highlight', + + {{ use: action-component-query(componentType = 'geo') }} + + {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} +}); +``` + + +## downplay(Action) + +Downplay specified data graphics. + +```ts +// If downplay series: +dispatchAction({ + type: 'downplay', + + {{ use: action-series-query }} + + {{ use: action-data-query-multiple }} +}); + +// If downplay geo component (since v5.1.0): +dispatchAction({ + type: 'downplay', + + {{ use: action-component-query(componentType = 'geo') }} + + {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} +}); +``` ## select(Action) diff --git a/en/api/events.md b/en/api/events.md index 254bcba51..1ef9c41bb 100644 --- a/en/api/events.md +++ b/en/api/events.md @@ -80,7 +80,17 @@ See [Events and actions in ECharts](tutorial.html#Events%20and%20actions%20in%20 ### globalout(Event) ### contextmenu(Event) +## highlight(Event) +**ACTION:** [highlight](~action.highlight) + +Event of data highlight. + +## downplay(Event) + +**ACTION:** [downplay](~action.downplay) + +Event of data downplay. ## selectchanged(Event) diff --git a/zh/api/action.md b/zh/api/action.md index d40faf92c..9b3c256c8 100644 --- a/zh/api/action.md +++ b/zh/api/action.md @@ -35,7 +35,53 @@ ECharts 中支持的图表行为,通过 [dispatchAction](~echartsInstance.disp **注:** 代码中的 `?:` 表示该属性是可选的。*EVENT:* 是 action 对应触发的事件。 +## highlight(Action) +高亮指定的数据图形。 + +```ts +// 如果要高亮系列: +dispatchAction({ + type: 'highlight', + + {{ use: action-series-query }} + + {{ use: action-data-query-multiple }} +}); + +// 如果要高亮 geo 组件(从 `v5.1.0` 开始支持): +dispatchAction({ + type: 'highlight', + + {{ use: action-component-query(componentType = 'geo') }} + + {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} +}); +``` + +## downplay(Action) + +取消高亮指定的数据图形。 + +```ts +// 如果要取消高亮系列: +dispatchAction({ + type: 'downplay', + + {{ use: action-series-query }} + + {{ use: action-data-query-multiple }} +}) + +// 如果要取消高亮 geo 组件(从 `v5.1.0` 开始支持): +dispatchAction({ + type: 'downplay', + + {{ use: action-component-query(componentType = 'geo') }} + + {{ use: action-component-item-query-multiple(componentType = 'geo', componentItemDesc = 'region') }} +}); +``` ## select(Action) diff --git a/zh/api/events.md b/zh/api/events.md index 54af7d437..4f79f6113 100644 --- a/zh/api/events.md +++ b/zh/api/events.md @@ -77,7 +77,17 @@ chart.on('mouseover', {seriesIndex: 1, name: 'xx'}, function (params) { ### globalout(Event) ### contextmenu(Event) +## highlight(Event) +**ACTION:** [highlight](~action.highlight) + +高亮事件。 + +## downplay(Event) + +**ACTION:** [downplay](~action.downplay) + +取消高亮事件。 ## selectchanged(Event) From 094c733bbadce0754b8e37c257f999afffdadc88 Mon Sep 17 00:00:00 2001 From: huanglp Date: Fri, 26 Aug 2022 14:40:51 +0800 Subject: [PATCH 04/13] change hightlight and downplay doc --- en/api/action.md | 4 ++-- zh/api/action.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/en/api/action.md b/en/api/action.md index 81cfcaf8b..4e4c482c5 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -41,7 +41,7 @@ Chart actions supported by ECharts are triggered through [dispatchAction](~echar Highlights specified data graphics. ```ts -// If highlight series: +// If highlight series(`highlight` has been deprecated since `v5.0.0`, please use `sunburstHighlight` instead): dispatchAction({ type: 'highlight', @@ -66,7 +66,7 @@ dispatchAction({ Downplay specified data graphics. ```ts -// If downplay series: +// If downplay series(`downplay` has been deprecated since `v5.0.0`, please use `sunburstUnhighlight` instead): dispatchAction({ type: 'downplay', diff --git a/zh/api/action.md b/zh/api/action.md index 9b3c256c8..219d2418e 100644 --- a/zh/api/action.md +++ b/zh/api/action.md @@ -40,7 +40,7 @@ ECharts 中支持的图表行为,通过 [dispatchAction](~echartsInstance.disp 高亮指定的数据图形。 ```ts -// 如果要高亮系列: +// 如果要高亮系列(从 `v5.0.0` 开始`highlight` 已被弃用,请使用 `sunburstHighlight` 代替): dispatchAction({ type: 'highlight', @@ -64,7 +64,7 @@ dispatchAction({ 取消高亮指定的数据图形。 ```ts -// 如果要取消高亮系列: +// 如果要取消高亮系列(从 `v5.0.0` 开始`downplay` 已被弃用,请使用 `sunburstUnhighlight` 代替): dispatchAction({ type: 'downplay', From 4f966bb715b635eeb92971dac1d2c3cc5b35a625 Mon Sep 17 00:00:00 2001 From: huanglp Date: Mon, 29 Aug 2022 14:25:19 +0800 Subject: [PATCH 05/13] change hightlight and downplay doc again --- en/api/action.md | 4 ++-- zh/api/action.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/en/api/action.md b/en/api/action.md index 4e4c482c5..b6add6848 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -41,7 +41,7 @@ Chart actions supported by ECharts are triggered through [dispatchAction](~echar Highlights specified data graphics. ```ts -// If highlight series(`highlight` has been deprecated since `v5.0.0`, please use `sunburstHighlight` instead): +// If highlight series(in the `sunburst` series,`highlight` has been deprecated since `v5.0.0`, please use `sunburstHighlight` instead): dispatchAction({ type: 'highlight', @@ -66,7 +66,7 @@ dispatchAction({ Downplay specified data graphics. ```ts -// If downplay series(`downplay` has been deprecated since `v5.0.0`, please use `sunburstUnhighlight` instead): +// If downplay series(in the `sunburst` series,`downplay` has been deprecated since `v5.0.0`, please use `sunburstUnhighlight` instead): dispatchAction({ type: 'downplay', diff --git a/zh/api/action.md b/zh/api/action.md index 219d2418e..7c84a1377 100644 --- a/zh/api/action.md +++ b/zh/api/action.md @@ -40,7 +40,7 @@ ECharts 中支持的图表行为,通过 [dispatchAction](~echartsInstance.disp 高亮指定的数据图形。 ```ts -// 如果要高亮系列(从 `v5.0.0` 开始`highlight` 已被弃用,请使用 `sunburstHighlight` 代替): +// 如果要高亮系列(旭日图`sunburst`,从 `v5.0.0` 开始`highlight` 已被弃用,请使用 `sunburstHighlight` 代替): dispatchAction({ type: 'highlight', @@ -64,7 +64,7 @@ dispatchAction({ 取消高亮指定的数据图形。 ```ts -// 如果要取消高亮系列(从 `v5.0.0` 开始`downplay` 已被弃用,请使用 `sunburstUnhighlight` 代替): +// 如果要取消高亮系列(旭日图`sunburst`,从 `v5.0.0` 开始`downplay` 已被弃用,请使用 `sunburstUnhighlight` 代替): dispatchAction({ type: 'downplay', From b5e4627a1a91574a5e644904f41207fb6b37c935 Mon Sep 17 00:00:00 2001 From: huanglp Date: Thu, 22 Aug 2024 11:04:53 +0800 Subject: [PATCH 06/13] Unknown word (possiblity) fix: (possibility) --- en/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/changelog.md b/en/changelog.md index 6da6a2b54..d49abe936 100644 --- a/en/changelog.md +++ b/en/changelog.md @@ -1859,7 +1859,7 @@ Recovery Build + [^] fix `the bug that update data can not be shown in `setOption` after emptying line chart data in v3.1.1. -+ [^] fix possiblity of reporting `id duplicates` error in `setOption(chart.getOption())` . Fix [#2635](https://github.com/apache/incubator-echarts/issues/2635) ++ [^] fix possibility of reporting `id duplicates` error in `setOption(chart.getOption())` . Fix [#2635](https://github.com/apache/incubator-echarts/issues/2635) + [^] allow to customize toolbox toobar. See details in [toolbox.feature](https://ecomfe.github.io/echarts-doc/public/en/option.html#toolbox.feature) From f71e943a54f6081271dd56c65037af878de2b1a7 Mon Sep 17 00:00:00 2001 From: huanglp Date: Thu, 22 Aug 2024 12:15:20 +0800 Subject: [PATCH 07/13] -fix doc]-Correct spelling errors in words --- en/api/action.md | 4 ++-- zh/option/partial/style-shadow-opacity.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/en/api/action.md b/en/api/action.md index 5dd3117be..16f09966a 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -294,7 +294,7 @@ dispatchAction({ ### takeGlobalCursor(Action) -Activate or inactivate `dataZoom` buttom in `toolbox`. +Activate or inactivate `dataZoom` bottom in `toolbox`. ```ts myChart.dispatchAction({ @@ -474,7 +474,7 @@ The parameters are the same as [action brush](~action.brush.brush). ### takeGlobalCursor The switch of the brush. This action can make the mouse enabled/disabled to brush. -In fact, the brush buttons in [toolbox](option.html#toolbox.feature.brush) just use this aciton. +In fact, the brush buttons in [toolbox](option.html#toolbox.feature.brush) just use this action. This event corresponding to this action is [globalCursorTaken](~events.globalCursorTaken). diff --git a/zh/option/partial/style-shadow-opacity.md b/zh/option/partial/style-shadow-opacity.md index 376e03728..23224c9f7 100644 --- a/zh/option/partial/style-shadow-opacity.md +++ b/zh/option/partial/style-shadow-opacity.md @@ -16,7 +16,7 @@ ``` {{ if: ${needShow} }} -**注意**:此配置项生效的前提是,设置了 `show: true` 以及值不为 `tranparent` 的背景色 `backgroundColor`。 +**注意**:此配置项生效的前提是,设置了 `show: true` 以及值不为 `transparent` 的背景色 `backgroundColor`。 {{ /if }} #${prefix} shadowColor(Color) = ${defaultShadowColor} From 2c1dd05aca6fe843b4373080029892cca920bed5 Mon Sep 17 00:00:00 2001 From: huanglp Date: Thu, 22 Aug 2024 13:08:23 +0800 Subject: [PATCH 08/13] sunburstHighlight is deprecated rather than highlight --- en/api/action.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/api/action.md b/en/api/action.md index 16f09966a..651a101f7 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -41,7 +41,7 @@ Chart actions supported by ECharts are triggered through [dispatchAction](~echar Highlights specified data graphics. ```ts -// If highlight series(in the `sunburst` series,`highlight` has been deprecated since `v5.0.0`, please use `sunburstHighlight` instead): +// If highlight series(in the `sunburst` series,`sunburstHighlight` has been deprecated since `v5.0.0`, please use `highlight` instead): dispatchAction({ type: 'highlight', From 0a7106e1596e763aa06272ac868293e64508669b Mon Sep 17 00:00:00 2001 From: huanglp Date: Thu, 22 Aug 2024 13:12:16 +0800 Subject: [PATCH 09/13] revert last change. --- en/api/action.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/api/action.md b/en/api/action.md index 651a101f7..7f66e3b9a 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -41,7 +41,7 @@ Chart actions supported by ECharts are triggered through [dispatchAction](~echar Highlights specified data graphics. ```ts -// If highlight series(in the `sunburst` series,`sunburstHighlight` has been deprecated since `v5.0.0`, please use `highlight` instead): +// If highlight series: dispatchAction({ type: 'highlight', From 666cc247582aeac23adbe9e2d6ab18dca3ee3d52 Mon Sep 17 00:00:00 2001 From: huanglp Date: Thu, 22 Aug 2024 13:19:48 +0800 Subject: [PATCH 10/13] revert in zh --- zh/api/action.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/api/action.md b/zh/api/action.md index 6b02e27e3..9f3b4a586 100644 --- a/zh/api/action.md +++ b/zh/api/action.md @@ -40,7 +40,7 @@ ECharts 中支持的图表行为,通过 [dispatchAction](~echartsInstance.disp 高亮指定的数据图形。 ```ts -// 如果要高亮系列(旭日图`sunburst`,从 `v5.0.0` 开始`highlight` 已被弃用,请使用 `sunburstHighlight` 代替): +// 如果要高亮系列 dispatchAction({ type: 'highlight', From f05c5d6cc84a549ec5be22e0395677b28907c5b2 Mon Sep 17 00:00:00 2001 From: huanglp Date: Thu, 22 Aug 2024 13:23:49 +0800 Subject: [PATCH 11/13] bottom to button --- en/api/action.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/api/action.md b/en/api/action.md index 7f66e3b9a..35d550922 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -294,7 +294,7 @@ dispatchAction({ ### takeGlobalCursor(Action) -Activate or inactivate `dataZoom` bottom in `toolbox`. +Activate or inactivate `dataZoom` button in `toolbox`. ```ts myChart.dispatchAction({ From 16de20b8d7aa10f8344472bc0a8c642f796b8284 Mon Sep 17 00:00:00 2001 From: plainheart Date: Thu, 22 Aug 2024 13:51:03 +0800 Subject: [PATCH 12/13] revert unnecessary changes --- en/api/action.md | 2 +- zh/api/action.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/api/action.md b/en/api/action.md index 35d550922..0bd5cf04b 100644 --- a/en/api/action.md +++ b/en/api/action.md @@ -66,7 +66,7 @@ dispatchAction({ Downplay specified data graphics. ```ts -// If downplay series(in the `sunburst` series,`downplay` has been deprecated since `v5.0.0`, please use `sunburstUnhighlight` instead): +// If downplay series: dispatchAction({ type: 'downplay', diff --git a/zh/api/action.md b/zh/api/action.md index 9f3b4a586..85d6bfbd1 100644 --- a/zh/api/action.md +++ b/zh/api/action.md @@ -64,7 +64,7 @@ dispatchAction({ 取消高亮指定的数据图形。 ```ts -// 如果要取消高亮系列(旭日图`sunburst`,从 `v5.0.0` 开始`downplay` 已被弃用,请使用 `sunburstUnhighlight` 代替): +// 如果要取消高亮系列: dispatchAction({ type: 'downplay', From fd309fb12e2a6ff33a3c95867cab9c590ebceec9 Mon Sep 17 00:00:00 2001 From: plainheart Date: Thu, 22 Aug 2024 13:52:07 +0800 Subject: [PATCH 13/13] revert unnecessary changes --- zh/api/action.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/api/action.md b/zh/api/action.md index 85d6bfbd1..51ad9c799 100644 --- a/zh/api/action.md +++ b/zh/api/action.md @@ -40,7 +40,7 @@ ECharts 中支持的图表行为,通过 [dispatchAction](~echartsInstance.disp 高亮指定的数据图形。 ```ts -// 如果要高亮系列 +// 如果要高亮系列: dispatchAction({ type: 'highlight',