score:1

Accepted answer

just swap the order in the input i.e.

var barchartdata = {
    labels: ["allergan plc", "amazon.com inc", "facebook inc class a"],
    datasets: [{
        fillcolor: "rgba(220,220,220,0.5)",
        strokecolor: "rgba(220,220,220,0.8)",
        highlightfill: "rgba(220,220,220,0.75)",
        highlightstroke: "rgba(220,220,220,1)",
        data: [7, 8, 9]
    }]
};

Related Query

More Query from same tag