[2.0 Alpha] (intermediate value).Bar is not a function

Getting the above error when trying to draw just a bar chart example with the new 2.0 Alpha version:

(intermediate value).Bar is not a function

The example working fine with the stable 1.0 release –> https://jsfiddle.net/ahrex/jy8nnaem/
(better than in my pc, because neither with the 1.0 Im not able to draw negative bar charts

Author: Fantashit

3 thoughts on “[2.0 Alpha] (intermediate value).Bar is not a function

  1. If you’re using the alpha3, try replacing

    var myBarChart = new Chart(ctx).Bar(data, options);

    with

    var myBarChart = new Chart(ctx, {
        type: 'bar',
        data: data,
        options: options
    });

    or

    var myBarChart = Chart.Bar(ctx, {
        data: data,
        options: options
    });
  2. Same issue with alpha4. Any plans on fixing it?
    I’d like to replace the old chart.js with the new one without fixing up all the code, but currently it doesn’t work.

Comments are closed.