Skip to content

Commit e865e93

Browse files
author
aiyin.lzy
committed
feat: 增加 treemap.rawFields 文档
1 parent 595bcf8 commit e865e93

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/api/plots/treemap.en.md

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ Among them, you can get the path parameter in the formatter function of label (t
4848

4949
Color mapping field name.
5050

51+
#### rawFields
52+
53+
<description>**optional** _string[]_</description>
54+
55+
Extra original fields. Once configured, you can retrieve additional raw data in the datum parameter of callback functions such as color.
5156
### Geometry Style
5257

5358
`markdown:docs/common/color.en.md`

docs/api/plots/treemap.zh.md

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ G2 plot 会根据 data 生成以下数据结构:
4848

4949
颜色映射字段名。
5050

51+
#### rawFields
52+
53+
<description>**optional** _string[]_</description>
54+
55+
额外的原始字段。配置之后,可以在 color 等回调函数的 datum 参数中,获取到更多额外的原始数据。
56+
5157
### 图形样式
5258

5359
`markdown:docs/common/color.zh.md`

0 commit comments

Comments
 (0)