GitXplorerGitXplorer
K

react-sparkline

public
148 stars
11 forks
2 issues

Commits

List of commits on branch master.
Unverified
a9d7c5203d8f240938b9f2288287aaf0478df013

2.0.0

KKyleAMathews committed 9 years ago
Unverified
8a88484b06afde5e04b677a61212670745a23f1a

Update dependencies + fix examples

KKyleAMathews committed 9 years ago
Unverified
1f79d4c875c083a434987a2defdaa851f037cc30

Merge pull request #10 from hull/master

KKyleAMathews committed 9 years ago
Unverified
9ae81c9210755bf4ff0f7e5fffbdfec826f32a1f

white-space -> whiteSpace

ooliger committed 9 years ago
Unverified
89823a330338fff153efb3ddc2ddf751868409c9

react 0.14

ooliger committed 9 years ago
Unverified
dca68cb8750dcddce18478f5af22f35f495d04ff

1.0.1

KKyleAMathews committed 10 years ago

README

The README file for this repository.

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/