Skip to content

Commit

Permalink
doc: fix wrong description for tooltip event (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
susiwen8 authored Sep 27, 2021
1 parent f7c56e5 commit 0d010e8
Show file tree
Hide file tree
Showing 57 changed files with 171 additions and 59 deletions.
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/area.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/bar.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/bidirectional-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/bidirectional-bar.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/box.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/box.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/bullet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/bullet.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/chord.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/chord.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/column.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/column.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/dual-axes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/dual-axes.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/funnel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/funnel.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/heatmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/heatmap.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/histogram.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion docs/.g2plot-plot-api/histogram.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
Loading

0 comments on commit 0d010e8

Please sign in to comment.