Appearance
Chart 图表
以显式字段绘制柱、线和面积图。零值会保留,缺值会在折线和面积图上断开。
vue
<ll-chart type="line" :data="rows" x-key="month" :series="series" label="更新次数" />Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| data | 行集合 | ChartRow[] | 必填 | — |
| x-key | 横轴字段名 | string | 必填 | — |
| series | 包含 yKey、label、color 的系列集合 | ChartSeries[] | 必填 | — |
| type | 绘图类型 | string | bar、line、area | bar |
| label | 图表的可访问名称 | string | 必填 | — |
Slots
| 名称 | 说明 |
|---|---|
| empty | 自定义空状态 |