spmjs

spm@3.x

Brand new static package manager for browser.

Getting Started 󰅴 Packages

react-chartjs


react charting components using the chartjs lib

spm install react-chartjs
Versions 0.7.3
Updated 9 years ago
Keywords react, react-component, chart, charts, graph, chartjs
Homepage https://github.com/jhudson8/react-chartjs
Repository git+https://github.com/jhudson8/react-chartjs.git
Main index.js
Owner

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