@czty/lchartbarp
v0.0.14
Published
一:说明: 人物形状的象形柱状图
Downloads
2
Readme
一:说明: 人物形状的象形柱状图
二:使用: npm i @czty/lchartbarp
import React from 'react'; import Lchartbarp from '@czty/lchartbarp';
const MyComponent = () => { return ( <Lchartbarp draggable={true} configer={ x: 0, y: 0, clazz : '', params : {}, url: '', method: 'get', data: [{score: 3, recordTime: "2022-04-02 09:00:00", params: {}}, {score: 3, recordTime: "2022-04-01 10:00:00", params: {}}, {score: 3, recordTime: "2022-03-30 12:00:00", params: {}}, {score: 15, recordTime: "2022-03-29 13:00:00", params: {}}, {score: 20, recordTime: "2022-03-28 14:00:00", params: {}}],
width: '400px',
height: '200px',
maleValue: 4331,
femaleValue: 3117,
maleColor: 'rgb(1, 229, 233)',
femaleColor: 'rgb(255, 85, 85)',
options: {}
}
/>
) }
三:字段说明 x: y: clazz: 可添加的组件的className params: 请求的传参参数 url: 请求的url地址 method: 请求方式 width: 组件的整体宽度 height: 组件的整体高度 data:数据 maleValue:男性图数据 femaleValue:女性图数据 maleColor:男性图填充颜色 femaleColor:女性图填充颜色 options:饼图option选项