react-minigraph
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.81latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.81
0.0.70
0.0.62
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i react-minigraph

Weekly Downloads

3

Version

0.0.8

License

MIT

Unpacked Size

29.8 kB

Total Files

38

Last publish

Collaborators

  • pitilezard