From e2e8a5fafe12a71c85a3275faa1f220d4a7fc62a Mon Sep 17 00:00:00 2001 From: hustcc Date: Fri, 19 May 2023 23:00:46 +0800 Subject: [PATCH] fix: example typo (#5064) --- site/docs/manual/single-view/tooltip.zh.md | 4 ++-- site/examples/interaction/interaction/demo/tooltip-render.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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 }) => `