UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

35 lines (27 loc) 1.13 kB
--- title: g2-mini-bar subtitle: 迷你柱状图 cols: 2 type: Components module: import { G2MiniBarModule } from '@ohayo/chart/mini-bar'; --- 迷你柱状图更适合展示简单的区间数据,简洁的表现方式可以很好的减少大数据量的视觉展现压力。 ## API ### g2-mini-bar | 参数 | 说明 | 类型 | 默认值 | |----|----|----|-----| | `[delay]` | 延迟渲染,单位:毫秒 | `number` | `0` | | `[color]` | 图表颜色 | `string` | `#1890FF` | | `[height]` | 图表高度 | `number` | - | | `[yTooltipSuffix]` | y 轴Tooltip后缀,一般指定单位 | `string` | - | | `[tooltipType]` | Tooltip显示类型 | `'mini','default'` | `'default'` | | `[borderWidth]` | 线条粗细 | `number` | `5` | | `[padding]` | 图表内部间距 | `array` | `[8, 8, 8, 8]` | | `[data]` | 数据 | `G2MiniBarData[]` | - | | `[theme]` | 定制图表主题 | `string | LooseObject` | - | | `(clickItem)` | 点击项回调 | `EventEmitter<G2MiniBarClickItem>` | - | ### G2MiniBarData | 参数 | 说明 | 类型 | 默认值 | |----|----|----|-----| | `[x]` | x轴 | `any` | - | | `[y]` | y轴 | `any` | - |