reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

fix chart.js version #99

Closed orisano closed 8 years ago

orisano commented 8 years ago

chart.js interface changed from 2.0.0 later.

for example:

// version 1.0.2
var myBarChart = new Chart(ctx)["Bar"](data, options);
// version 2.0.0 later.
var myBarChart = new Chart(ctx, {type: "bar", data: data, options: options});

now npm install Chart.js --save installed 2.0.0 by default. cannot executable this line

more detail 1.x 2.x