Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update docs #5458

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/docs/manual/core/axis.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ chart.axis({

## 视图坐标轴

坐标轴具有传递性。视图上声明的坐标轴会传递给 `children` 声明的标记,如果该标记有对应通道的坐标轴,就合并;否者不影响
坐标轴具有传递性。视图上声明的坐标轴会传递给 `children` 声明的标记,如果该标记有对应通道的坐标轴,就合并;否则不影响

## 隐藏坐标轴

Expand Down
2 changes: 1 addition & 1 deletion site/docs/manual/core/legend.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ chart.interval().legend({

## 视图图例

图例具有传递性。视图上声明的图例会传递给 `children` 声明的标记,如果该标记有对应通道的图例,就合并;否者不影响
图例具有传递性。视图上声明的图例会传递给 `children` 声明的标记,如果该标记有对应通道的图例,就合并;否则不影响

## 隐藏图例

Expand Down
2 changes: 1 addition & 1 deletion site/docs/manual/core/scale.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ chart.scale({

## 视图比例尺

比例尺会可以配置在视图层级,并且会传递给 `children` 指定的标记,如果该标记对应的通道没有设置比例尺,就设置,否者没有影响。在不绘制多轴图的情况下,比例尺是可以设置在视图层级的。
比例尺会可以配置在视图层级,并且会传递给 `children` 指定的标记,如果该标记对应的通道没有设置比例尺,就设置,否则没有影响。在不绘制多轴图的情况下,比例尺是可以设置在视图层级的。

```js | ob
(() => {
Expand Down
2 changes: 1 addition & 1 deletion site/docs/manual/core/scrollbar.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ chart.interval().scrollbar({

## 视图滚动条

滚动条具有传递性。视图上声明的滚动条会传递给 `children` 声明的标记,如果该标记有对应通道的滚动条,就合并;否者不影响
滚动条具有传递性。视图上声明的滚动条会传递给 `children` 声明的标记,如果该标记有对应通道的滚动条,就合并;否则不影响
2 changes: 1 addition & 1 deletion site/docs/manual/core/slider.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ chart.interval().slider({

## 视图滑动条

滑动条具有传递性。视图上声明的滑动条会传递给 `children` 声明的标记,如果该标记有对应通道的滑动条,就合并;否者不影响
滑动条具有传递性。视图上声明的滑动条会传递给 `children` 声明的标记,如果该标记有对应通道的滑动条,就合并;否则不影响
2 changes: 1 addition & 1 deletion site/docs/manual/core/transform.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ chart.transform([{ type: 'stackY' }, { type: 'sortX' }]);

## 视图转换

在视图上声明的转换会传递给 `children` 声明的标记。如果该标记没有转换就设置,否者没有影响。比如下面这个带有变的堆叠面积图:
在视图上声明的转换会传递给 `children` 声明的标记。如果该标记没有转换就设置,否则没有影响。比如下面这个带有变的堆叠面积图:

```js | ob
(() => {
Expand Down
2 changes: 1 addition & 1 deletion site/docs/manual/extra-topics/customization.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ chart.interval().style('shape', 'triangle');

有时候内置的 Tooltip 无法满足需求,这时候可以通过 `mark.interaction.tooltip.render` 或者 `view.interaction.tooltip.render` 的 _render_ 函数来渲染自定义的提示。

该 _render_ 函数接受事件对象 _event_ 和提示数据 _tooltipData_,返回一个 string 或者 DOM 对象。其中 _event_ 是 [@antv/g](https://g.antv.antgroup.com/) 抛出的鼠标对象,_tooltipData_ 是通过 `mark.tooltip` 声明的 title 和 items 数据。如果返回值是一个 string,那么会作为 tooltip 容器的 innerHTML,否者会挂载该返回值。一个提示的 render 函数的定义大概如下:
该 _render_ 函数接受事件对象 _event_ 和提示数据 _tooltipData_,返回一个 string 或者 DOM 对象。其中 _event_ 是 [@antv/g](https://g.antv.antgroup.com/) 抛出的鼠标对象,_tooltipData_ 是通过 `mark.tooltip` 声明的 title 和 items 数据。如果返回值是一个 string,那么会作为 tooltip 容器的 innerHTML,否则会挂载该返回值。一个提示的 render 函数的定义大概如下:

```js
function render(event, tooltipData) {
Expand Down