I am trying to draw a horizontal bar chart using chart.js 2.3.0 -
var MeSeContext = document.getElementById("MeSeStatusCanvas").getContext("2d"); var MeSeData = { labels: [ "ME", "SE" ], datasets: [ { label: "Test", data: [100, 75], backgroundColor: ["#669911", "#119966" ], hoverBackgroundColor: ["#66A2EB", "#FCCE56"] }] }; var MeSeChart = new Chart(MeSeContext, { type: 'horizontalBar', data: MeSeData, options: { scales: { yAxes: [{ stacked: true }] } } });
But he shows only one bar. What did I miss here?
source share