Chartjs-Building Chart.js master – generated .js gives errors

1πŸ‘

βœ…

In the package.json on 2.0 they have included a new dependency "color": "git://github.com/chartjs/color" you will also need to include this. Odd thing is they alias this to a helper

   color = helpers.color = function(color) {
        if (!window.Color) {
            console.log('Color.js not found!');
            return color;
        }
        return window.Color(color);
    },

So I would have expected for you to see the log unless you already have something in the global namespace named Color.

Leave a comment