Skip to content

Commit

Permalink
docs: update interaction.tooltip documents
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed May 15, 2023
1 parent e0bf125 commit feea06c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/docs/spec/interaction/tooltip.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ chart.render();
| body | 是否展示 tooltip | `boolean` | true |
| groupName | 是否使用 groupName | `boolean` | true |
| position | tooltip 位置 | `TooltipPosition` | - |
| mount | tooltip 渲染的 dom 节点 | `string` \| `HTMLElement` | 图表容器 |
| bounding | tooltip 渲染的限制区域,超出会自动调整位置 | `BBox` | 图表区域大小 |
| crosshairs | 是否暂时指示线 | `boolean` | - |
| `crosshairs${StyleAttrs}` | 指示线的样式 | `number \| string` | - |
| render | 自定义 tooltip 渲染函数 | `(event, options) => HTMLElement \| string` | - |
Expand All @@ -52,7 +54,6 @@ chart.render();

```ts
type TooltipPosition =
| 'auto'
| 'top'
| 'bottom'
| 'left'
Expand All @@ -61,6 +62,8 @@ type TooltipPosition =
| 'top-right'
| 'bottom-left'
| 'bottom-right';

type BBox = { x: number, y: number, width: number, height: number };
```

## 案例
Expand Down

0 comments on commit feea06c

Please sign in to comment.