diff --git a/site/docs/manual/single-view/tooltip.zh.md b/site/docs/manual/single-view/tooltip.zh.md index 956f806cc9..7b733059e0 100644 --- a/site/docs/manual/single-view/tooltip.zh.md +++ b/site/docs/manual/single-view/tooltip.zh.md @@ -135,8 +135,8 @@ chart .scale('y', { type: 'log' }); chart.interaction('tooltip', { - // 设置 Tooltip 的位置,为 'auto' 时会自动调整 Tooltip 使其不会超出图表区域 - position: 'auto', + // 设置 Tooltip 的位置 + position: 'right', }); ``` diff --git a/site/examples/interaction/interaction/demo/tooltip-render.ts b/site/examples/interaction/interaction/demo/tooltip-render.ts index 0cdf0a2ec0..45d5aacbea 100644 --- a/site/examples/interaction/interaction/demo/tooltip-render.ts +++ b/site/examples/interaction/interaction/demo/tooltip-render.ts @@ -17,7 +17,6 @@ chart .encode('y', 'frequency'); chart.interaction('tooltip', { - position: 'auto', render: (event, { title, items }) => `