0.0.8 • Published 11 months ago

react-minigraph v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

npm

react-minigraph

Install

npm install react-minigraph --save
yarn add react-minigraph

Run the demo

yarn install
yarn dev

Use

import { MiniGraph, MiniGraphLine, MiniGraphNormalBand, MiniGraphAverage};

const data: number[] = [ /* Your data */ ];

<MiniGraph data={data}>
    <MiniGraphLine curved filled />
    <MiniGraphNormalBand />
    <MiniGraphAverage />
</MiniGraphLine>

Will get you this:

Graph1

Colours are automatically generated using chroma-js, if you don't specify the starting colour, it'll pick one randomly.

Future Plans

Check out drafted releases for future plans

Prior Art

This project was inspired by react-sparklines.

0.0.8

11 months ago

0.0.7

1 year ago

0.0.6

2 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