Skip to content

Commit

Permalink
Merge pull request #378 from abdulhdr1/master
Browse files Browse the repository at this point in the history
fix typo series-treemp -> series-treemap
  • Loading branch information
plainheart authored Nov 29, 2023
2 parents 2151847 + 0ecfd3e commit d26c81d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions en/option/series/treemap.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ the the data format of [series-treemap.data](~series-treemap.data) is a forest.
{
value: 2323, // The value of this node, indicating the area size.
// it could also be an array, such as [2323, 43, 55], in which the first item of array indicates the area size.
// The other items of the array can be used for extra visual mapping. See details in series-treemp.levels.
// The other items of the array can be used for extra visual mapping. See details in series-treemap.levels.
id: 'someid-1', // id is not mandatory.
// But if using API, id is used to locate node.
name: 'description of this node', // show the description text in rectangle.
Expand Down Expand Up @@ -358,7 +358,7 @@ The value of this node, indicating the area size.

It could also be an array, such as [2323, 43, 55], in which the first item of array indicates the area size.

The other items of the array can be used for extra visual mapping. See details in series-treemp.levels.
The other items of the array can be used for extra visual mapping. See details in series-treemap.levels.

### id(string)

Expand Down
2 changes: 1 addition & 1 deletion zh/option/series/treemap.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
{
value: 2323, // value字段的值,对应到面积大小。
// 也可以是数组,如 [2323, 43, 55],则数组第一项对应到面积大小。
// 数组其他项可以用于额外的视觉映射,详情参见 series-treemp.levels。
// 数组其他项可以用于额外的视觉映射,详情参见 series-treemap.levels。
id: 'someid-1', // id 不是必须设置的。
// 但是如果想使用 API 来改变某个节点,需要用 id 来定位。
name: 'description of this node', // 显示在矩形中的描述文字。
Expand Down

0 comments on commit d26c81d

Please sign in to comment.