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

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago