0.1.1 • Published 3 years ago

react-waterfall-chart v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

React-Waterfall-Chart

An easy to use React component for creating waterfall charts.

Installation and usage

The easiest way to use react-waterfall-chart is to install it from npm.

npm install --save react-waterfall-chart

Then use it in your app.

import { Waterfall } from 'react-waterfall-chart';

const data = [
    {
        labels: ['step 1'],
        start: 0,
        end: 3,
    },
    {
        labels: ['step 2'],
        start: 3,
        end: 9,
    },
    {
        labels: ['step 3'],
        start: 9,
        end: 10,
    },
];

function App() {
    return <Waterfall data={data} />;
}

Props

  • data - Required. An array of objects representing each row in the chart. Each object requires start, and end values, and can also accept an array of labels and a string for color.
  • maxValue - Optional. Define the maximum value of your chart. Without maxValue the highest end in the provided data will be used.
0.1.0

3 years ago

0.1.1

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago