Skip to content

Commit 562d7ad

Browse files
authored
Merge pull request #3933 from wangxingkang/develop
修复 sanKey 示例文档错误。并移除 nameKey 无用类型
2 parents 4f303b0 + fc8b3cc commit 562d7ad

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

docs/assets/examples/en/sankey-chart/nameKey-sankey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ option: sankeyChart
1313
The links of a Sankey diagram have a source node and an end node (source), and nodes can be represented in two forms:
1414

1515
- By default, the index value of nodes is used.
16-
- By configuring the callback function of nameKey, use the node name as the starting and ending nodes of the edge.
17-
This example uses the callback function of nameKey as the node configuration of the edge.
16+
- By configuring the callback function of nodeKey, use the node name as the starting and ending nodes of the edge.
17+
This example uses the callback function of nodeKey as the node configuration of the edge.
1818

1919
## Key option
2020

docs/assets/examples/zh/sankey-chart/nameKey-sankey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ option: sankeyChart
1313
桑基图的边具有起点节点(source)和终点节点(source),可以使用两种形式来表示节点:
1414

1515
- 默认使用 nodes 的索引值。
16-
- 通过配置 nameKey 的回调函数,使用节点名称作为边的起点节点和终点节点。
17-
这个例子就使用 nameKey 的回调函数作为边的节点配置的。
16+
- 通过配置 nodeKey 的回调函数,使用节点名称作为边的起点节点和终点节点。
17+
这个例子就使用 nodeKey 的回调函数作为边的节点配置的。
1818

1919
## 关键配置
2020

packages/vchart-types/types/series/sankey/interface.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type ISankeyLabelSpec = ILabelSpec & {
1515
limit?: number;
1616
};
1717
export interface ISankeySeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimationSpec<SankeyMark, SankeyAppearPreset> {
18-
nameKey: any;
1918
type: 'sankey';
2019
categoryField: string;
2120
valueField: string;

packages/vchart/src/series/sankey/interface.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export type ISankeyLabelSpec = ILabelSpec & {
2424
};
2525

2626
export interface ISankeySeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimationSpec<SankeyMark, SankeyAppearPreset> {
27-
nameKey: any;
2827
type: 'sankey';
2928

3029
/**

0 commit comments

Comments
 (0)