From 0d010e88f49823bf97f9a9b36a479c613e73227f Mon Sep 17 00:00:00 2001 From: susiwen8 Date: Mon, 27 Sep 2021 19:21:52 +0800 Subject: [PATCH] doc: fix wrong description for tooltip event (#893) --- docs/.g2plot-plot-api/area.md | 4 +++- docs/.g2plot-plot-api/bar.md | 4 +++- docs/.g2plot-plot-api/bar.zh-CN.md | 4 +++- docs/.g2plot-plot-api/bidirectional-bar.md | 4 +++- docs/.g2plot-plot-api/bidirectional-bar.zh-CN.md | 4 +++- docs/.g2plot-plot-api/box.md | 4 +++- docs/.g2plot-plot-api/box.zh-CN.md | 4 +++- docs/.g2plot-plot-api/bullet.md | 4 +++- docs/.g2plot-plot-api/bullet.zh-CN.md | 4 +++- docs/.g2plot-plot-api/chord.md | 4 +++- docs/.g2plot-plot-api/chord.zh-CN.md | 4 +++- docs/.g2plot-plot-api/column.md | 4 +++- docs/.g2plot-plot-api/column.zh-CN.md | 4 +++- docs/.g2plot-plot-api/dual-axes.md | 4 +++- docs/.g2plot-plot-api/dual-axes.zh-CN.md | 4 +++- docs/.g2plot-plot-api/funnel.md | 4 +++- docs/.g2plot-plot-api/funnel.zh-CN.md | 4 +++- docs/.g2plot-plot-api/heatmap.md | 4 +++- docs/.g2plot-plot-api/heatmap.zh-CN.md | 4 +++- docs/.g2plot-plot-api/histogram.md | 4 +++- docs/.g2plot-plot-api/histogram.zh-CN.md | 4 +++- docs/.g2plot-plot-api/line.md | 4 +++- docs/.g2plot-plot-api/line.zh-CN.md | 4 +++- docs/.g2plot-plot-api/pie.md | 5 +++-- docs/.g2plot-plot-api/pie.zh-CN.md | 4 +++- docs/.g2plot-plot-api/progress.md | 4 +++- docs/.g2plot-plot-api/radar.md | 4 +++- docs/.g2plot-plot-api/radar.zh-CN.md | 4 +++- docs/.g2plot-plot-api/radial-bar.md | 5 +++-- docs/.g2plot-plot-api/radial-bar.zh-CN.md | 4 +++- docs/.g2plot-plot-api/ring-progress.md | 4 +++- docs/.g2plot-plot-api/rose.md | 4 +++- docs/.g2plot-plot-api/rose.zh-CN.md | 4 +++- docs/.g2plot-plot-api/sankey.md | 4 +++- docs/.g2plot-plot-api/sankey.zh-CN.md | 4 +++- docs/.g2plot-plot-api/scatter.md | 4 +++- docs/.g2plot-plot-api/scatter.zh-CN.md | 4 +++- docs/.g2plot-plot-api/stock.md | 4 +++- docs/.g2plot-plot-api/stock.zh-CN.md | 4 +++- docs/.g2plot-plot-api/sunburst.md | 4 +++- docs/.g2plot-plot-api/sunburst.zh-CN.md | 4 +++- docs/.g2plot-plot-api/tiny-area.md | 4 +++- docs/.g2plot-plot-api/tiny-area.zh-CN.md | 4 +++- docs/.g2plot-plot-api/tiny-column.md | 4 +++- docs/.g2plot-plot-api/tiny-column.zh-CN.md | 4 +++- docs/.g2plot-plot-api/tiny-line.md | 4 +++- docs/.g2plot-plot-api/tiny-line.zh-CN.md | 4 +++- docs/.g2plot-plot-api/treemap.md | 4 +++- docs/.g2plot-plot-api/treemap.zh-CN.md | 4 +++- docs/.g2plot-plot-api/violin.md | 4 +++- docs/.g2plot-plot-api/violin.zh-CN.md | 4 +++- docs/.g2plot-plot-api/waterfall.md | 4 +++- docs/.g2plot-plot-api/waterfall.zh-CN.md | 4 +++- docs/.g2plot-plot-api/word-cloud.md | 4 +++- docs/.g2plot-plot-api/word-cloud.zh-CN.md | 4 +++- docs/guide/common.md | 4 +++- docs/guide/common.zh-CN.md | 4 +++- 57 files changed, 171 insertions(+), 59 deletions(-) diff --git a/docs/.g2plot-plot-api/area.md b/docs/.g2plot-plot-api/area.md index 4ff7f4bde..4408f013e 100644 --- a/docs/.g2plot-plot-api/area.md +++ b/docs/.g2plot-plot-api/area.md @@ -1504,15 +1504,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/bar.md b/docs/.g2plot-plot-api/bar.md index cceace2d3..a3f9aafc6 100644 --- a/docs/.g2plot-plot-api/bar.md +++ b/docs/.g2plot-plot-api/bar.md @@ -1580,15 +1580,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/bar.zh-CN.md b/docs/.g2plot-plot-api/bar.zh-CN.md index 40bf686a2..9c0d5df04 100644 --- a/docs/.g2plot-plot-api/bar.zh-CN.md +++ b/docs/.g2plot-plot-api/bar.zh-CN.md @@ -1613,15 +1613,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/bidirectional-bar.md b/docs/.g2plot-plot-api/bidirectional-bar.md index e6a2d37f3..f5b37e750 100644 --- a/docs/.g2plot-plot-api/bidirectional-bar.md +++ b/docs/.g2plot-plot-api/bidirectional-bar.md @@ -1418,15 +1418,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/bidirectional-bar.zh-CN.md b/docs/.g2plot-plot-api/bidirectional-bar.zh-CN.md index ac0572050..35ec1a2d3 100644 --- a/docs/.g2plot-plot-api/bidirectional-bar.zh-CN.md +++ b/docs/.g2plot-plot-api/bidirectional-bar.zh-CN.md @@ -1406,15 +1406,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/box.md b/docs/.g2plot-plot-api/box.md index 79dfc2243..a15cb5bde 100644 --- a/docs/.g2plot-plot-api/box.md +++ b/docs/.g2plot-plot-api/box.md @@ -1438,15 +1438,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/box.zh-CN.md b/docs/.g2plot-plot-api/box.zh-CN.md index 4d1be5b61..5fd42d4a2 100644 --- a/docs/.g2plot-plot-api/box.zh-CN.md +++ b/docs/.g2plot-plot-api/box.zh-CN.md @@ -1429,15 +1429,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/bullet.md b/docs/.g2plot-plot-api/bullet.md index d87c04102..d85afcffa 100644 --- a/docs/.g2plot-plot-api/bullet.md +++ b/docs/.g2plot-plot-api/bullet.md @@ -1218,15 +1218,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/bullet.zh-CN.md b/docs/.g2plot-plot-api/bullet.zh-CN.md index 500248328..1c01644a5 100644 --- a/docs/.g2plot-plot-api/bullet.zh-CN.md +++ b/docs/.g2plot-plot-api/bullet.zh-CN.md @@ -1224,15 +1224,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/chord.md b/docs/.g2plot-plot-api/chord.md index beb478edf..69be6d303 100644 --- a/docs/.g2plot-plot-api/chord.md +++ b/docs/.g2plot-plot-api/chord.md @@ -144,15 +144,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/chord.zh-CN.md b/docs/.g2plot-plot-api/chord.zh-CN.md index beb478edf..09c0b9030 100644 --- a/docs/.g2plot-plot-api/chord.zh-CN.md +++ b/docs/.g2plot-plot-api/chord.zh-CN.md @@ -144,15 +144,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/column.md b/docs/.g2plot-plot-api/column.md index ec598c011..c1bfee6f7 100644 --- a/docs/.g2plot-plot-api/column.md +++ b/docs/.g2plot-plot-api/column.md @@ -1622,15 +1622,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/column.zh-CN.md b/docs/.g2plot-plot-api/column.zh-CN.md index 96d803d4b..399f02369 100644 --- a/docs/.g2plot-plot-api/column.zh-CN.md +++ b/docs/.g2plot-plot-api/column.zh-CN.md @@ -1615,15 +1615,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/dual-axes.md b/docs/.g2plot-plot-api/dual-axes.md index aa19fc6d9..f997113bc 100644 --- a/docs/.g2plot-plot-api/dual-axes.md +++ b/docs/.g2plot-plot-api/dual-axes.md @@ -1519,15 +1519,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/dual-axes.zh-CN.md b/docs/.g2plot-plot-api/dual-axes.zh-CN.md index 66bf7f59f..d03469daa 100644 --- a/docs/.g2plot-plot-api/dual-axes.zh-CN.md +++ b/docs/.g2plot-plot-api/dual-axes.zh-CN.md @@ -1510,15 +1510,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/funnel.md b/docs/.g2plot-plot-api/funnel.md index 774a0b736..2bc93eb14 100644 --- a/docs/.g2plot-plot-api/funnel.md +++ b/docs/.g2plot-plot-api/funnel.md @@ -1034,15 +1034,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/funnel.zh-CN.md b/docs/.g2plot-plot-api/funnel.zh-CN.md index 02c4d58e5..9ff9336f4 100644 --- a/docs/.g2plot-plot-api/funnel.zh-CN.md +++ b/docs/.g2plot-plot-api/funnel.zh-CN.md @@ -1025,15 +1025,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/heatmap.md b/docs/.g2plot-plot-api/heatmap.md index 779dcdb94..7ab655ea3 100644 --- a/docs/.g2plot-plot-api/heatmap.md +++ b/docs/.g2plot-plot-api/heatmap.md @@ -1493,15 +1493,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/heatmap.zh-CN.md b/docs/.g2plot-plot-api/heatmap.zh-CN.md index ee76c134f..fc8012ec8 100644 --- a/docs/.g2plot-plot-api/heatmap.zh-CN.md +++ b/docs/.g2plot-plot-api/heatmap.zh-CN.md @@ -1484,15 +1484,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/histogram.md b/docs/.g2plot-plot-api/histogram.md index 16eade509..b52e7bc24 100644 --- a/docs/.g2plot-plot-api/histogram.md +++ b/docs/.g2plot-plot-api/histogram.md @@ -1456,15 +1456,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/histogram.zh-CN.md b/docs/.g2plot-plot-api/histogram.zh-CN.md index 411051368..b201015dc 100644 --- a/docs/.g2plot-plot-api/histogram.zh-CN.md +++ b/docs/.g2plot-plot-api/histogram.zh-CN.md @@ -1447,15 +1447,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/line.md b/docs/.g2plot-plot-api/line.md index 39db0e93b..5e3aeee5b 100644 --- a/docs/.g2plot-plot-api/line.md +++ b/docs/.g2plot-plot-api/line.md @@ -1537,15 +1537,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/line.zh-CN.md b/docs/.g2plot-plot-api/line.zh-CN.md index e50b9ba8f..c2d74163b 100644 --- a/docs/.g2plot-plot-api/line.zh-CN.md +++ b/docs/.g2plot-plot-api/line.zh-CN.md @@ -1528,15 +1528,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/pie.md b/docs/.g2plot-plot-api/pie.md index 77c4f0fe0..30cafddd0 100644 --- a/docs/.g2plot-plot-api/pie.md +++ b/docs/.g2plot-plot-api/pie.md @@ -1168,19 +1168,20 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); - // Label adds click events plot.on('label:click', (...args) => { console.log(...args); diff --git a/docs/.g2plot-plot-api/pie.zh-CN.md b/docs/.g2plot-plot-api/pie.zh-CN.md index 828683b08..46df07740 100644 --- a/docs/.g2plot-plot-api/pie.zh-CN.md +++ b/docs/.g2plot-plot-api/pie.zh-CN.md @@ -1157,15 +1157,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/progress.md b/docs/.g2plot-plot-api/progress.md index d909e86f7..fd2f1c0f4 100644 --- a/docs/.g2plot-plot-api/progress.md +++ b/docs/.g2plot-plot-api/progress.md @@ -761,15 +761,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/radar.md b/docs/.g2plot-plot-api/radar.md index 065310895..3d9e8b49e 100644 --- a/docs/.g2plot-plot-api/radar.md +++ b/docs/.g2plot-plot-api/radar.md @@ -1546,15 +1546,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/radar.zh-CN.md b/docs/.g2plot-plot-api/radar.zh-CN.md index a2e11098f..dfb1032ce 100644 --- a/docs/.g2plot-plot-api/radar.zh-CN.md +++ b/docs/.g2plot-plot-api/radar.zh-CN.md @@ -1537,15 +1537,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/radial-bar.md b/docs/.g2plot-plot-api/radial-bar.md index 8abc68d3a..0563c37e7 100644 --- a/docs/.g2plot-plot-api/radial-bar.md +++ b/docs/.g2plot-plot-api/radial-bar.md @@ -1505,19 +1505,20 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); - // Label adds click events plot.on('label:click', (...args) => { console.log(...args); diff --git a/docs/.g2plot-plot-api/radial-bar.zh-CN.md b/docs/.g2plot-plot-api/radial-bar.zh-CN.md index 5e24202fb..5940fd445 100644 --- a/docs/.g2plot-plot-api/radial-bar.zh-CN.md +++ b/docs/.g2plot-plot-api/radial-bar.zh-CN.md @@ -1498,15 +1498,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/ring-progress.md b/docs/.g2plot-plot-api/ring-progress.md index b80fcf6ef..ec216849f 100644 --- a/docs/.g2plot-plot-api/ring-progress.md +++ b/docs/.g2plot-plot-api/ring-progress.md @@ -767,15 +767,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/rose.md b/docs/.g2plot-plot-api/rose.md index 6da194cca..1b4381247 100644 --- a/docs/.g2plot-plot-api/rose.md +++ b/docs/.g2plot-plot-api/rose.md @@ -1555,15 +1555,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/rose.zh-CN.md b/docs/.g2plot-plot-api/rose.zh-CN.md index 8f803bdcb..cdbceb7a8 100644 --- a/docs/.g2plot-plot-api/rose.zh-CN.md +++ b/docs/.g2plot-plot-api/rose.zh-CN.md @@ -1546,15 +1546,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/sankey.md b/docs/.g2plot-plot-api/sankey.md index 96e52adab..afa6a3d59 100644 --- a/docs/.g2plot-plot-api/sankey.md +++ b/docs/.g2plot-plot-api/sankey.md @@ -222,15 +222,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/sankey.zh-CN.md b/docs/.g2plot-plot-api/sankey.zh-CN.md index 80336938a..ce89510ed 100644 --- a/docs/.g2plot-plot-api/sankey.zh-CN.md +++ b/docs/.g2plot-plot-api/sankey.zh-CN.md @@ -222,15 +222,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/scatter.md b/docs/.g2plot-plot-api/scatter.md index 5b081bdb4..e9c475e45 100644 --- a/docs/.g2plot-plot-api/scatter.md +++ b/docs/.g2plot-plot-api/scatter.md @@ -1585,15 +1585,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/scatter.zh-CN.md b/docs/.g2plot-plot-api/scatter.zh-CN.md index 6cf06afeb..3e9a3207f 100644 --- a/docs/.g2plot-plot-api/scatter.zh-CN.md +++ b/docs/.g2plot-plot-api/scatter.zh-CN.md @@ -1576,15 +1576,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/stock.md b/docs/.g2plot-plot-api/stock.md index 6e9e2ee26..9b43d49cc 100644 --- a/docs/.g2plot-plot-api/stock.md +++ b/docs/.g2plot-plot-api/stock.md @@ -1442,15 +1442,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/stock.zh-CN.md b/docs/.g2plot-plot-api/stock.zh-CN.md index 4465e2dc7..84d275a24 100644 --- a/docs/.g2plot-plot-api/stock.zh-CN.md +++ b/docs/.g2plot-plot-api/stock.zh-CN.md @@ -1433,15 +1433,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/sunburst.md b/docs/.g2plot-plot-api/sunburst.md index 7275047bc..0100952fd 100644 --- a/docs/.g2plot-plot-api/sunburst.md +++ b/docs/.g2plot-plot-api/sunburst.md @@ -863,15 +863,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/sunburst.zh-CN.md b/docs/.g2plot-plot-api/sunburst.zh-CN.md index 015e9f61b..aa4f4bbb1 100644 --- a/docs/.g2plot-plot-api/sunburst.zh-CN.md +++ b/docs/.g2plot-plot-api/sunburst.zh-CN.md @@ -842,15 +842,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/tiny-area.md b/docs/.g2plot-plot-api/tiny-area.md index 8f9ed7eb8..8c08c856b 100644 --- a/docs/.g2plot-plot-api/tiny-area.md +++ b/docs/.g2plot-plot-api/tiny-area.md @@ -1145,15 +1145,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/tiny-area.zh-CN.md b/docs/.g2plot-plot-api/tiny-area.zh-CN.md index 030a1f82b..ea75e310c 100644 --- a/docs/.g2plot-plot-api/tiny-area.zh-CN.md +++ b/docs/.g2plot-plot-api/tiny-area.zh-CN.md @@ -1128,15 +1128,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/tiny-column.md b/docs/.g2plot-plot-api/tiny-column.md index 9ff2f74e3..69763c502 100644 --- a/docs/.g2plot-plot-api/tiny-column.md +++ b/docs/.g2plot-plot-api/tiny-column.md @@ -1119,15 +1119,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/tiny-column.zh-CN.md b/docs/.g2plot-plot-api/tiny-column.zh-CN.md index e6dfc141d..0a5307278 100644 --- a/docs/.g2plot-plot-api/tiny-column.zh-CN.md +++ b/docs/.g2plot-plot-api/tiny-column.zh-CN.md @@ -1102,15 +1102,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/tiny-line.md b/docs/.g2plot-plot-api/tiny-line.md index 8987ad300..45aec473f 100644 --- a/docs/.g2plot-plot-api/tiny-line.md +++ b/docs/.g2plot-plot-api/tiny-line.md @@ -1139,15 +1139,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/tiny-line.zh-CN.md b/docs/.g2plot-plot-api/tiny-line.zh-CN.md index 87a5fa366..3af1d1f15 100644 --- a/docs/.g2plot-plot-api/tiny-line.zh-CN.md +++ b/docs/.g2plot-plot-api/tiny-line.zh-CN.md @@ -1122,15 +1122,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/treemap.md b/docs/.g2plot-plot-api/treemap.md index aaa50df0b..598c2b540 100644 --- a/docs/.g2plot-plot-api/treemap.md +++ b/docs/.g2plot-plot-api/treemap.md @@ -800,15 +800,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/treemap.zh-CN.md b/docs/.g2plot-plot-api/treemap.zh-CN.md index f015c8450..9445d5701 100644 --- a/docs/.g2plot-plot-api/treemap.zh-CN.md +++ b/docs/.g2plot-plot-api/treemap.zh-CN.md @@ -781,15 +781,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/violin.md b/docs/.g2plot-plot-api/violin.md index a7af92244..a5efa1feb 100644 --- a/docs/.g2plot-plot-api/violin.md +++ b/docs/.g2plot-plot-api/violin.md @@ -1429,15 +1429,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/violin.zh-CN.md b/docs/.g2plot-plot-api/violin.zh-CN.md index 8e0128222..b07704986 100644 --- a/docs/.g2plot-plot-api/violin.zh-CN.md +++ b/docs/.g2plot-plot-api/violin.zh-CN.md @@ -1425,15 +1425,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/waterfall.md b/docs/.g2plot-plot-api/waterfall.md index 42482bbf5..489f32e09 100644 --- a/docs/.g2plot-plot-api/waterfall.md +++ b/docs/.g2plot-plot-api/waterfall.md @@ -1454,15 +1454,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/waterfall.zh-CN.md b/docs/.g2plot-plot-api/waterfall.zh-CN.md index 419db8739..03da50a97 100644 --- a/docs/.g2plot-plot-api/waterfall.zh-CN.md +++ b/docs/.g2plot-plot-api/waterfall.zh-CN.md @@ -1460,15 +1460,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/word-cloud.md b/docs/.g2plot-plot-api/word-cloud.md index 4df501614..13b96f587 100644 --- a/docs/.g2plot-plot-api/word-cloud.md +++ b/docs/.g2plot-plot-api/word-cloud.md @@ -1456,15 +1456,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/.g2plot-plot-api/word-cloud.zh-CN.md b/docs/.g2plot-plot-api/word-cloud.zh-CN.md index 73b97ab9e..047cba37f 100644 --- a/docs/.g2plot-plot-api/word-cloud.zh-CN.md +++ b/docs/.g2plot-plot-api/word-cloud.zh-CN.md @@ -1447,15 +1447,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/guide/common.md b/docs/guide/common.md index 2e0e95efc..ab0a5f572 100644 --- a/docs/guide/common.md +++ b/docs/guide/common.md @@ -139,15 +139,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// Tooltip show event plot.on('tooltip:show', (...args) => { console.log(...args); }); +// Tooltip hide event plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// Tooltip change event plot.on('tooltip:change', (...args) => { console.log(...args); }); diff --git a/docs/guide/common.zh-CN.md b/docs/guide/common.zh-CN.md index b5e6bc886..56dd38dfb 100644 --- a/docs/guide/common.zh-CN.md +++ b/docs/guide/common.zh-CN.md @@ -135,15 +135,17 @@ plot.on('legend-item-name:click', (...args) => { console.log(...args); }); -// 给 tooltip 添加点击事件 +// tooltip 显示事件 plot.on('tooltip:show', (...args) => { console.log(...args); }); +// tooltip 隐藏事件 plot.on('tooltip:hide', (...args) => { console.log(...args); }); +// tooltip 改变事件 plot.on('tooltip:change', (...args) => { console.log(...args); });