// 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
chart.js interface changed from 2.0.0 later.
for example:
now
npm install Chart.js --save
installed 2.0.0 by default. cannot executable this linemore detail 1.x 2.x