Skip to content

Commit

Permalink
fix: 更改示例链接至绝对路径 & 更改重复链接 (#2459)
Browse files Browse the repository at this point in the history
Co-authored-by: aiyin.lzy <nadia.lzy@antfin.com>
  • Loading branch information
liuzhenying and aiyin.lzy authored Mar 24, 2021
1 parent 1d9bcf8 commit b4622b1
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 53 deletions.
6 changes: 3 additions & 3 deletions docs/api/plots/dual-axes.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ Example:

Specifies the respective configuration of the two axes in the form of "left axis configuration, right axis configuration". Each configuration should be a Config of type LINE or COLUMN. Mixed chart function is implemented by specifying the corresponding graph with two axes:

- Biaxial line chart: [Line, Line], reference [DEMO](../../../examples/dual-axes/dual-line)
- Column and Line Mixing Chart: [Column, Line], reference [DEMO](../../../examples/dual-axes/column-line)
- Biaxial line chart: [Line, Line], reference [DEMO](/en/examples/dual-axes/dual-line)
- Column and Line Mixing Chart: [Column, Line], reference [DEMO](/en/examples/dual-axes/column-line)

你还可以通过配置 Line 或 Column 的相关配置(见下文),形成双轴多 Line([DEMO](../../../examples/dual-axes/dual-line#dual-multi-line)), 堆叠柱+Line([DEMO](../../../examples/dual-axes/stacked-column-line)), 分组柱+Line([DEMO](../../../examples/dual-axes/grouped-column-line))
你还可以通过配置 Line 或 Column 的相关配置(见下文),形成双轴多 Line([DEMO](/en/examples/dual-axes/dual-line#dual-multi-line)), 堆叠柱+Line([DEMO](/en/examples/dual-axes/stacked-column-line)), 分组柱+Line([DEMO](/en/examples/dual-axes/grouped-column-line))

The corresponding graph configuration of polyline is as follows:

Expand Down
6 changes: 3 additions & 3 deletions docs/api/plots/dual-axes.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ const data = [[{ time: '1991',value: 20 }], [{ time: '1992', count: 20 }]];

指定了双轴各自对应的图形配置,形式为[左轴图形配置,右轴图形配置]。每一个配置应为 Line 或 Column 类型的 Config。通过指定双轴对应图形,来实现混合图表功能:

- 双轴折线图: [Line, Line], 参考 [DEMO](../../../examples/dual-axes/dual-line)
- 柱线混合图: [Column, Line], 参考 [DEMO](../../../examples/dual-axes/column-line)
- 双轴折线图: [Line, Line], 参考 [DEMO](/zh/examples/dual-axes/dual-line)
- 柱线混合图: [Column, Line], 参考 [DEMO](/zh/examples/dual-axes/column-line)

你还可以通过配置 Line 或 Column 的相关配置(见下文),形成双轴多折线图([DEMO](../../../examples/dual-axes/dual-line#dual-multi-line)), 堆叠柱+折线图([DEMO](../../../examples/dual-axes/stacked-column-line)), 分组柱+折线图([DEMO](../../../examples/dual-axes/grouped-column-line))
你还可以通过配置 Line 或 Column 的相关配置(见下文),形成双轴多折线图([DEMO](/zh/examples/dual-axes/dual-line#dual-multi-line)), 堆叠柱+折线图([DEMO](/zh/examples/dual-axes/stacked-column-line)), 分组柱+折线图([DEMO](/zh/examples/dual-axes/grouped-column-line))

折线对应的图形配置为:

Expand Down
4 changes: 2 additions & 2 deletions docs/api/plots/scatter.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Details to see: [legend](#legend)

#### quadrant

[**DEMO**](../../../examples/scatter/bubble#quadrant)
[**DEMO**](/en/examples/scatter/bubble#quadrant)

<description>**optional** _object_</description>

Expand All @@ -261,7 +261,7 @@ Quadrant components.

#### regressionLine

[**DEMO**](../../../examples/scatter/scatter#line)
[**DEMO**](/en/examples/scatter/scatter#line)

<description>**optional** _object_</description>

Expand Down
4 changes: 2 additions & 2 deletions docs/api/plots/scatter.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ xAxis、yAxis 配置相同。**注意**:由于 DualAxes(双轴图) 和 Bidirec

#### quadrant

[**DEMO**](../../../examples/scatter/bubble#quadrant)
[**DEMO**](/zh/examples/scatter/bubble#quadrant)

<description>**optional** _object_</description>

Expand All @@ -261,7 +261,7 @@ xAxis、yAxis 配置相同。**注意**:由于 DualAxes(双轴图) 和 Bidirec

#### regressionLine

[**DEMO**](../../../examples/scatter/scatter#line)
[**DEMO**](/zh/examples/scatter/scatter#line)

<description>**optional** _object_</description>

Expand Down
2 changes: 1 addition & 1 deletion docs/api/plots/treemap.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ G2 plot generates the following data structure based on data:
- path: Level information of the current node (including the current node),The level information is from data (node metadata), value (node value), height (node height)
- children: Leaf node information of the current node (only if it exists)

Among them, you can get the path parameter in the formatter function of label (tooltip), so as to calculate the proportion, [DEMO](../../../examples/more-plots/treemap#treemap-nest)
Among them, you can get the path parameter in the formatter function of label (tooltip), so as to calculate the proportion, [DEMO](/en/examples/more-plots/treemap#treemap-nest)

#### colorField

Expand Down
2 changes: 1 addition & 1 deletion docs/api/plots/treemap.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ G2 plot 会根据 data 生成以下数据结构:
- path: 当前节点的层级信息(包含当前节点),层级信息由 data(节点元数据),value(节点 value),height(节点高度)
- children: 当前节点的叶节点信息(仅存在时给出)

其中,你可以在 label(tooltip)的 formatter 函数中获取 path 参数,从而计算占比, 可参见[DEMO](../../../examples/more-plots/treemap#treemap-nest)
其中,你可以在 label(tooltip)的 formatter 函数中获取 path 参数,从而计算占比, 可参见[DEMO](/zh/examples/more-plots/treemap#treemap-nest)

#### colorField

Expand Down
Loading

0 comments on commit b4622b1

Please sign in to comment.