pareto-chart
v1.0.22
Published
Get a pareto chart that can be used as a react component.
Readme
pareto-chart
Get a pareto chart that can be used as a react component.

Install
npm install --save pareto-chartUsage
import React, { Component } from 'react'
import ParetoChart from 'pareto-chart'
class Example extends Component {
render () {
return (
<ParetoChart
width={100}
height={50}
lineLabel='Cumulative percentage'
data={{
'Customer complaints': {
'Dificult parking': 40,
'Rude sales person': 13,
'Poor lighting': 10,
'Confusing layout': 27,
'Limmited sizes': 15
},
'Complaints about documents ': {
'Certificate error': 20,
'Certificate missing': 40,
'Invoice error': 10,
'Packaging error': 5,
'Wrong quantity': 3,
'Others': 2
},
'Defects by discipline': {
'Tests': 20,
'Codification': 40,
'Release': 10,
'Analysis': 5,
'Planning': 15
}
}} />
)
}
}License
MIT © thiagoferrax
