0.0.3 • Published 9 years ago

react-chartjs-commonjs v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

react-chartjs-commonjs

Fork of react-chartjs to make it easier to import with webpack or other CommonJS module loader

Example Usage

var ReactChart = require("react-chartjs-commonjs");

var MyComponent = React.createClass({
  render: function() {
    return <ReactChart.Line data={chartData} options={chartOptions} width="600" height="250"/>
  }
});
  • data represents the chart data (see chart.js for details)
  • options represents the chart options (see chart.js for details)
  • all other parameters will be passed through to the canvas element