spmjs

spm@3.x

Brand new static package manager for browser.

Getting Started 󰅴 Packages

react-chartjs @0.7.3


react charting components using the chartjs lib

spm install react-chartjs@0.7.3

Version: 0.7.3 ~ stable

react-chartjs

rich interactive react charting components using chart.js including

view chart examples

Installation

This is a CommonJS component only (to be used with something like Webpack or Browserify)

npm install --save react-chartjs

You must also include chart.js and React as dependencies.

Example Usage

var LineChart = require("react-chartjs").Line;

var MyComponent = React.createClass({
  render: function() {
    return <LineChart data={chartData} options={chartOptions} width="600" height="250"/>
  }
});

Chart References

The canvas element can be retrieved using getCanvas and the chartjs object can be retrieved using getChart.

Other React projects that may interest you