Displaying Total on Stacked Chart - CanvasJS
Displaying Total on Stacked Chart - CanvasJS
HTML
<script src="http://canvasjs.com/assets/script/canvasjs.min.js"></script>
<div id="chartContainer" style="height: 360px; width: 100%;"></div>
JavaScript
var chart = new CanvasJS.Chart("chartContainer",
{
toolTip:{
shared:true
},
axisY:{
title: "axisY Title g q q g q g",
},
data: [
{
type: "column",
name:"total",
indexLabel: "Total:{y}",
dataPoints: [
{ x: 10, y: 142 },
{ x: 20, y: 110},
{ x: 30, y: 100 },
{ x: 40, y: 130 },
{ x: 50, y: 190 },
{ x: 60, y: 136 },
{ x: 70, y: 56 },
{ x: 80, y: 68 },
{ x: 90, y: 28 }
]
}
]
});
chart.render();