Skip to content

Commit

Permalink
doc(geo): add doc for georoam totalZoom apache/echarts#19837
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Apr 16, 2024
1 parent d7d43bf commit 47b0f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion en/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ Event emitted after [geo](option.html#geo) is roamed.
componentType: 'geo' | 'series',
seriesId: string,
zoom: number, // zoom ratio of roaming once
totalZoom: number, // accumulated zoom ratio
originX: number,
originY: number
}
Expand Down Expand Up @@ -525,7 +526,7 @@ var option = {
// ...
};
chart.on('finished', function () {
// ...
// ...
});
chart.setOption(option);
```
Expand Down
3 changes: 2 additions & 1 deletion zh/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ chart.on('mouseover', {seriesIndex: 1, name: 'xx'}, function (params) {
componentType: 'geo' | 'series',
seriesId: string,
zoom: number, // 单次缩放倍数
totalZoom: number, //累计缩放倍数
originX: number,
originY: number
}
Expand Down Expand Up @@ -514,7 +515,7 @@ var option = {
// ...
};
chart.on('finished', function () {
// ...
// ...
});
chart.setOption(option);
```
Expand Down

0 comments on commit 47b0f85

Please sign in to comment.