react-simple-pie-chart
v0.5.0
Published
A React component to generate simple pie charts.
Downloads
1,180
Readme
React Simple Pie Chart
Need a simple <svg>
pie chart and don't want to bring in any heavy
dependencies? You've come to the right place.
Installation
npm
npm install react-simple-pie-chart --save
Usage
import PieChart from 'react-simple-pie-chart';
<PieChart
slices={[
{
color: '#f00',
value: 10,
},
{
color: '#0f0',
value: 20,
},
]}
/>
Code of conduct
This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.