react-donut-chart

An extendable SVG-based donut chart React component.

react-donut-chart

Installation

npm install react-donut-chart --save


Usage

import DonutChart from 'react-donut-chart';
//things I would never do:
<DonutChart
    data={[{
        label: 'Give you up',
        value: 25
    },
    {
        label: '',
        value: 75,
        isEmpty: true
    }]} />

npm run build
npm run start

GitHub