From 169af79e808bfbb47f5a5a464118bd817325e652 Mon Sep 17 00:00:00 2001 From: huanglp Date: Wed, 3 Aug 2022 15:08:22 +0800 Subject: [PATCH 1/5] 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 2/5] 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 3/5] 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 4/5] 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 5/5] 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',