React Donut Graph
A simple donut graph for React.JS.
Install npm i donut-graph --save
Or Yarn Yarn add donut-graph
Use import DonutGraph from 'graph-donut
let PropTypes = data: ReactPropTypesarray // array of objects to use for data points | Default [] valuelabel: ReactPropTypesstring // label for the chart | Default ('ValueLabel') text: ReactPropTypesstring // text inside the chart | Default ('') size: ReactPropTypesnumber // diameter of chart | Default (150) strokewidth: ReactPropTypesnumber // width of chart line | Default (20) donutchartTextValStyle: ReactPropTypesobject //React CSS Object for Text Value | Default ({}) donutchartTextLabelStyle: ReactPropTypesobject //React CSS Object for Text Label | Default ({}) donutchartTextStyle: ReactPropTypesobject //React CSS Object for Text | Default ({})
Example Usage
;; let data = "value": 10 // number out of 100 "stroke": "blue" "offset": 0 React