@acodez/pichart 中文文档教程
@acodez/pichart
具有大量自定义功能的 React 按钮组件。
Installation
npm install @acodez/pichart
Props API
Property | Type | Required | Default value | Description |
---|---|---|---|---|
colors | array | yes | chart colors | |
data | array | yes | chart data |
Usage
import Pichart from "@acodez/pichart";
<Pichart data={[
{ name: 'Group A', value: 400 },
{ name: 'Group B', value: 300 },
{ name: 'Group C', value: 200 },
]}
colors={['#6FCF97', '#F2C94C',"#F6F7FC"]}
/>
@acodez/pichart
React button component with plenty of customization.
Installation
npm install @acodez/pichart
Props API
Property | Type | Required | Default value | Description |
---|---|---|---|---|
colors | array | yes | chart colors | |
data | array | yes | chart data |
Usage
import Pichart from "@acodez/pichart";
<Pichart data={[
{ name: 'Group A', value: 400 },
{ name: 'Group B', value: 300 },
{ name: 'Group C', value: 200 },
]}
colors={['#6FCF97', '#F2C94C',"#F6F7FC"]}
/>