Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 698 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 698 Bytes

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