Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/KyleAMathews/react-sparkline

React component for rendering simple sparklines
https://github.com/KyleAMathews/react-sparkline

Last synced: 3 months ago
JSON representation

React component for rendering simple sparklines

Awesome Lists containing this project

README

        

react-sparkline
===============

React component for rendering simple sparklines. Companion to [react-micro-bar-chart](https://github.com/KyleAMathews/react-micro-bar-chart).

## Install
`npm install react-sparkline`

## Usage
````javascript
var Sparkline = require('react-sparkline');

// Pass in an array of values.

// 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
}
]

````

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