@linkdesign/screen
Version:
屏组件库,但使用场景又不局限于屏。主要用于BI、大盘和屏
16 lines (13 loc) • 1.46 kB
Markdown
title: API
order: 3
### BarChart
| 参数名 | 说明 | 必填 | 类型 | 默认值 |
| ------------------------- | ----------------------------------------------------------------------------------------------------| ---- | ---------------------------------|--------|
| dataSource | 数据源<br/><br/>**属性:**<br/>label: {ReactNode} 内容<br/>value: {ReactNode} 值<br/>rate: {Number} 占比 | Y | Array | - |
| direction | 展示方向<br/><br/>**可选值:**<br/>'hoz', 'ver' | N | Enum | 'ver' |
| labelOptions | 内容样式,继承[ITitle](../?demo=Text_Title)<br /><br />**属性:**<br />widthRate: {Number} 宽占比 | N | Object | - |
| barOptions | 柱状图样式<br /><br />widthRate: {Number} 宽占比<br />backgroundColor: {String} 背景色<br />color: {String} 填充色 | N | Object | - |
| valueOptions | 值样式,继承[ITitle](../?demo=Text_Title)<br /><br />**属性:**<br />widthRate: {Number} 宽占比 | N | Object | - |
| ... | 其余参数继承自[ICarouselTable](../?demo=Text_CarouselTable) | N | Object | - |