Skip to content

Commit

Permalink
fix: example typo (#5064)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc authored May 19, 2023
1 parent 321fb1b commit e2e8a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/docs/manual/single-view/tooltip.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ chart
.scale('y', { type: 'log' });

chart.interaction('tooltip', {
// 设置 Tooltip 的位置,为 'auto' 时会自动调整 Tooltip 使其不会超出图表区域
position: 'auto',
// 设置 Tooltip 的位置
position: 'right',
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ chart
.encode('y', 'frequency');

chart.interaction('tooltip', {
position: 'auto',
render: (event, { title, items }) => `
<div
style="
Expand Down

0 comments on commit e2e8a5f

Please sign in to comment.