Appearance
你正在查看 v1.0.1 文档。切换到最新版请访问:/
柱状图参数预览
参数速览请看本页,详细解释请前往: API Reference(完整参数表)
BarSeries 常用参数
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| data | 数据数组 | number[] | [] |
| name | 系列名称 | string | 未设置 |
| color | 柱颜色 | string | GradientColor | 未设置 |
| barWidth | 柱宽 | number | 未设置 |
| barGap | 柱间距 | number | 未设置 |
| barCategoryGap | 类目间距 | number | 未设置 |
| stack | 堆叠名称 | string | 未设置 |
| label | 标签 | LabelOption | 未设置 |
XAxis / YAxis 常用参数
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 轴类型 | 'category' | 'value' | 未设置 |
| data | 类目数据 | (string | number)[] | [] |
| includeZero | 是否包含 0 | boolean | 未设置 |
| boundaryGap | 类目间距 | boolean | 未设置 |
Grid / Tooltip / Legend
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| grid | 网格布局 | GridOption | 未设置 |
| tooltip | 提示框 | TooltipOption | 未设置 |
| legend | 图例 | LegendOption | 未设置 |