1.0.22 • Published 6 years ago

pareto-chart v1.0.22

Weekly downloads
105
License
MIT
Repository
github
Last release
6 years ago

pareto-chart

Get a pareto chart that can be used as a react component.

NPM JavaScript Style Guide

paretochart

Install

npm install --save pareto-chart

Usage

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

1.0.22

6 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago