Skip to content

Commit

Permalink
docs: renderer (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfu1 authored Jan 8, 2024
1 parent bf1b7b6 commit 9571ebb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion site/docs/options/plots/overview.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@ order: 1

<description>**optional** *string* *default:* `canvas`</description>

设置图表渲染方式为 `canvas``svg`
设置图表渲染方式为 `canvas``svg`,默认值无需指定,当要使用 svg 模式时,可以如下配置

```ts
// import { Renderer as CanvasRenderer } from '@antv/g-canvas';
import { Renderer as SVGRenderer } from '@antv/g-svg';

const config = {
renderer: new SVGRenderer()
}
```

## 视图模型

Expand Down

0 comments on commit 9571ebb

Please sign in to comment.