Skip to content

tudorilisoi/react-simple-pie-chart

 
 

Repository files navigation

#Changes in this fork:

  • render a white circle in the middle thus converting the chart to a doughnut
  • white line between slices (SVG stroke)

React Simple Pie Chart

npm version Build Status

Need a simple <svg> pie chart and don't want to bring in any heavy dependencies? You've come to the right place.

Demo

Example pie chart

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.

License

MIT

About

Simple pie chart React component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%