@acodez/pichart

pi chart

Usage no npm install needed!

<script type="module">
  import acodezPichart from 'https://cdn.skypack.dev/@acodez/pichart';
</script>

README

@acodez/pichart

npm_version license

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"]}
   />