[Chartjs]-Unable to draw method in Chart.js, v2 can't be found

49👍

In Chart.js 2.0.0 Alpha 3 you will need to create your chart like so:

var myNewChart = new Chart(ctx , {
    type: "line",
    data: dat, 
});

Fiddle Example

At least right now it doesn’t have new Chart().Line() like the older version.

What your error basically means is that it was expecting a semi-colon after Chart(ctx).

Leave a comment