@@ -19,13 +19,13 @@ order: 6
19
19
const data = [[{ time: ' 1991' ,value : 20 }], [{ time: ' 1992' , count: 20 }]];
20
20
```
21
21
22
- #### xField
22
+ #### xField
23
23
24
24
<description >** required** _ string_ </description >
25
25
26
26
点形状在 x 方向位置映射对应的数据字段名,一般对应一个连续字段。例如` {xField: 'time'} ` 。
27
27
28
- #### yField
28
+ #### yField
29
29
30
30
<description >** required** _ string[ ] _ </description >
31
31
@@ -41,39 +41,40 @@ const data = [[{ time: '1991',value: 20 }], [{ time: '1992', count: 20 }]];
41
41
42
42
<description >** optional** _ array object_ </description >
43
43
44
- 指定了双轴各自对应的图形配置,形式为[ 左轴图形配置,右轴图形配置] 。每一个配置应为 Line 或 Column 类型的 Config。通过指定双轴对应图形,来实现混合图表功能:
44
+ 指定了双轴各自对应的图形配置,形式为[ 左轴图形配置,右轴图形配置] 。每一个配置应为 Line 或 Column 类型的 Config。通过指定双轴对应图形,来实现混合图表功能:
45
+
45
46
- 双轴折线图: [ Line, Line] , 参考 [ DEMO] ( ../../../examples/dual-axes/dual-line )
46
47
- 柱线混合图: [ Column, Line] , 参考 [ DEMO] ( http://localhost:8080/zh/examples/dual-axes/column-line )
47
48
48
49
你还可以通过配置 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 ) )
49
50
50
51
折线对应的图形配置为:
51
52
52
- | 细分配置项名称 | 类型 | 功能描述 | 默认值 |
53
- | ----------- | -------------------------------- | ----------------------------------------------- | ------ |
54
- | geometry | _ string_ | 图形类型,指定为'line' | 'line' |
55
- | seriesField | _ string_ | 拆分字段, 若存在则为多折线,具体用法同[ 折线图 seriesfield] ( ./line#seriesfield ) |
56
- | smooth | _ boolean_ | 是否平滑,具体用法同[ 折线图 smooth] ( ./line#smooth ) | false |
57
- | connectNulls | _ boolean_ | 是否连接空数据,具体用法同[ 折线图 connectnulls] ( ./line#connectnulls ) | true |
58
- | lineStyle | _ StyleAttr \| Function_ | 折线图形样式,具体用法同[ 折线图 lineStyle] ( ./line#linestyle ) | |
59
- | point | _ pointStyle_ | 线数据点图形样式,具体用法同[ 折线图 point] ( ./line#point ) | |
60
- | label | _ ContinueLegendLabelCfg_ | 折线图 label,具体用法同[ 折线图 label] ( ./line#label ) |
61
- | color | _ string \| string[ ] \| Function_ | 指定点的颜色。具体用法同[ 折线图 color] ( ./line#color ) |
53
+ | 细分配置项名称 | 类型 | 功能描述 | 默认值 |
54
+ | -------------- | -------------------------------- | ------------------------------- ----------------------------------------------- | ------ |
55
+ | geometry | _ string_ | 图形类型,指定为'line' | 'line' |
56
+ | seriesField | _ string_ | 拆分字段, 若存在则为多折线,具体用法同[ 折线图 seriesfield] ( ./line#seriesfield ) |
57
+ | smooth | _ boolean_ | 是否平滑,具体用法同[ 折线图 smooth] ( ./line#smooth ) | false |
58
+ | connectNulls | _ boolean_ | 是否连接空数据,具体用法同[ 折线图 connectnulls] ( ./line#connectnulls ) | true |
59
+ | lineStyle | _ StyleAttr \| Function_ | 折线图形样式,具体用法同[ 折线图 lineStyle] ( ./line#linestyle ) | |
60
+ | point | _ pointStyle_ | 线数据点图形样式,具体用法同[ 折线图 point] ( ./line#point ) | |
61
+ | label | _ ContinueLegendLabelCfg_ | 折线图 label,具体用法同[ 折线图 label] ( ./line#label ) |
62
+ | color | _ string \| string[ ] \| Function_ | 指定点的颜色。具体用法同[ 折线图 color] ( ./line#color ) |
62
63
63
64
柱形对应的图形配置为:
64
65
65
- | 细分配置项名称 | 类型 | 功能描述 | 默认值 |
66
- | ----------- | -------------------------------- | ----------------------------------------------- | ------ |
67
- | geometry | _ string_ | 图形类型,应指定为'column' | |
68
- | seriesField | _ string_ | 拆分字段, 在分组柱状图下同 groupField、colorField,在堆积柱状图下同 stackField、colorField ,具体参考[ 柱形图 seriesfield] ( ./column#seriesfield ) |
69
- | isGroup | _ boolean_ | 是否分组柱形图,具体用法同[ 柱形图 isGroup] ( ./column#isgroup ) | false |
70
- | isStack | _ boolean_ | 是否堆积柱状图,具体用法同[ 柱形图 isStack] ( ./column#isstack ) | false |
71
- | columnWidthRatio | _ number_ | 柱状图宽度占比 [ 0-1] ,具体用法同[ 柱形图 columnWidthRatio] ( ./column#columnwidthratio ) | |
72
- | marginRatio | _ number_ | 分组中柱子之间的间距 [ 0-1] ,仅对分组柱状图适用,具体用法同[ 柱形图 marginRatio] ( ./column#marginratio ) | |
73
- | columnStyle | _ StyleAttr \| Function_ | 柱子样式配置,具体用法同[ 柱形图 columnStyle] ( ./column#columnstyle ) | |
74
- | label | _ ContinueLegendLabelCfg_ | 柱形图 label,具体用法同[ 柱线图 label] ( ./column#label ) |
75
- | color | _ string \| string[ ] \| Function_ | 指定点的颜色。具体用法同[ 折线图 color] ( ./column#color ) |
76
- | groupField | _ string_ | 拆分字段,用于堆叠+分组柱图,拆分优先级高于 seriesField,isGroup: true 时会根据 groupField 进行分组。 | - |
66
+ | 细分配置项名称 | 类型 | 功能描述 | 默认值 |
67
+ | ---------------- | -------------------------------- | ------------------------------------------------------------------------------------------------ ----------------------------------------------- | ------ |
68
+ | geometry | _ string_ | 图形类型,应指定为'column' | |
69
+ | seriesField | _ string_ | 拆分字段, 在分组柱状图下同 groupField、colorField,在堆积柱状图下同 stackField、colorField ,具体参考[ 柱形图 seriesfield] ( ./column#seriesfield ) |
70
+ | isGroup | _ boolean_ | 是否分组柱形图,具体用法同[ 柱形图 isGroup] ( ./column#isgroup ) | false |
71
+ | isStack | _ boolean_ | 是否堆积柱状图,具体用法同[ 柱形图 isStack] ( ./column#isstack ) | false |
72
+ | columnWidthRatio | _ number_ | 柱状图宽度占比 [ 0-1] ,具体用法同[ 柱形图 columnWidthRatio] ( ./column#columnwidthratio ) | |
73
+ | marginRatio | _ number_ | 分组中柱子之间的间距 [ 0-1] ,仅对分组柱状图适用,具体用法同[ 柱形图 marginRatio] ( ./column#marginratio ) | |
74
+ | columnStyle | _ StyleAttr \| Function_ | 柱子样式配置,具体用法同[ 柱形图 columnStyle] ( ./column#columnstyle ) | |
75
+ | label | _ ContinueLegendLabelCfg_ | 柱形图 label,具体用法同[ 柱线图 label] ( ./column#label ) |
76
+ | color | _ string \| string[ ] \| Function_ | 指定点的颜色。具体用法同[ 折线图 color] ( ./column#color ) |
77
+ | groupField | _ string_ | 拆分字段,用于堆叠+分组柱图,拆分优先级高于 seriesField,isGroup: true 时会根据 groupField 进行分组。 | - |
77
78
78
79
### 图表组件
79
80
@@ -144,18 +145,21 @@ xAxis、yAxis 配置相同,由于 DualAxes 是双轴, annotations 类型是
144
145
}
145
146
}
146
147
```
148
+
147
149
` markdown:docs/common/annotations.zh.md `
148
150
149
151
#### legend
150
152
151
153
` markdown:docs/common/legend.zh.md `
152
154
153
-
154
- #### 主题
155
155
### 图表主题
156
156
157
157
` markdown:docs/common/theme.zh.md `
158
158
159
+ #### 滚动条
160
+
161
+ ` markdown:docs/common/slider.zh.md `
162
+
159
163
### 图表事件
160
164
161
165
` markdown:docs/common/events.zh.md `
0 commit comments