rs

react-sparkline

React component for rendering simple sparklines

Showing:

Popularity

Downloads/wk

22

GitHub Stars

148

Maintenance

Last Commit

6yrs ago

Contributors

3

Package

Dependencies

1

Size (min+gzip)

53.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

react-sparkline

React component for rendering simple sparklines. Companion to react-micro-bar-chart.

Install

npm install react-sparkline

Usage

var Sparkline = require('react-sparkline');

// Pass in an array of values.
<Sparkline data={anArrayOfValues} />

// Sparkline of dates + values
// Pass in an array of objects something like
values = [
  {
    date: "2014-06-23T00:21:59.271Z"
    value: 2
  },
  {
    date: "2014-06-24T00:21:59.271Z"
    value: 4
  }
]
<Sparkline data={values} />

Demo

http://kyleamathews.github.io/react-sparkline/

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial