Chartjs-Can not update bar chart values in Chart.js 2.0.0 alpha3

1👍

You can update point by point, like so

$.each(my_chart.data.datasets, function (i, dataset) {
    dataset.metaData[3].custom = {
        backgroundColor: "green"
    };
    dataset.data[3] = 2.5;
});

my_chart.update();

Replace green by fc and 2.5 by v


Fiddle – https://jsfiddle.net/6qt14tpj/

Leave a comment