@acodez/pichart
v1.0.0
Published
pi chart
Downloads
4
Keywords
Readme
@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"]}
/>