Skip to content

Commit

Permalink
docs: typo fix (#5200)
Browse files Browse the repository at this point in the history
  • Loading branch information
d2FuZ3h1ZG9uZw authored Jun 16, 2023
1 parent dd46f0a commit 952f151
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/docs/manual/single-view/api.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ chart.line().call(x).call(y);
chart.point().call(x).call(y);
```

`node.call` 本质上会调用对节点执行第一个参数指定的函数,并且返回该节点。也就说下面两种写法是等价的。
`node.call` 本质上会对节点调用执行第一个参数指定的函数,并且返回该节点。也就说下面两种写法是等价的。

```js
x(chart.line()); // 第一种
Expand Down
2 changes: 1 addition & 1 deletion site/docs/manual/single-view/transform.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bin 主要是用来聚合数值类型的数据,group 主要针对离散数据
<img alt="pack" src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*HWXPS6a6pOQAAAAAAAAAAAAADmJ7AQ/original" width="640px">

```js
chart.factRect().point().transform({ typ: 'pack' });
chart.facetRect().point().transform({ type: 'pack' });
```

## 多个转换
Expand Down
2 changes: 1 addition & 1 deletion site/docs/manual/view-composition.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ order: 5

最基础的视图复合方式就是**空间复合(Space Composition)**,只是对空间进行划分。

一个比较常见的复合方式是 `chart.faceLayer`:将多个图表重叠在一起。使用场景是这些视图拥有的不同的坐标系,比如下面的条形图和饼图。
一个比较常见的复合方式是 `chart.facetLayer`:将多个图表重叠在一起。使用场景是这些视图拥有的不同的坐标系,比如下面的条形图和饼图。

<img alt="space" src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*SFM9T40m2cEAAAAAAAAAAAAADmJ7AQ/original" width="640px">

Expand Down

0 comments on commit 952f151

Please sign in to comment.