window.onload = function () {
var chart = new CanvasJS.Chart(“chartContainer”,
{
title:{
text: “Doughnut Chart with Legend”
},
legend: {
horizontalAlign: “right”,
verticalAlign: “center”
},
data: [
{
showInLegend: true,
type: “stackedBar”,
showInLegend: true,
dataPoints: [
{x:1, y:716,label: “InHouseVol”, indexLabel: “716;2.8”, legendText: “InHouseVol” },
{x:2, y:100,label: “1”, indexLabel: “100;50”, legendText: “Not Met” },
{x:3, y:300,label: “2”, indexLabel: “300;1.2”, legendText: “Met”},
{x:2, y:250,label: “1”, indexLabel: “250;30”, legendText: “Met” },
]
}
]
});
chart.render();
}