How can I add total label on each column to ChartWrapper google chart? I tryed to search into documentation from google charts, but I'm new in google chart and is not so easy for me.
The link of image below it's a example I want. example I want
Follow my code below, it's a simple code.
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {
callback: drawChart_var,
packages: ['corechart']
});
function drawChart_var() {
var dataChart = new google.visualization.arrayToDataTable(
[[{ label: 'Category', type: 'string' },{ label: '', type: 'number' },
{ label: 'Base 2', type: 'number' },{ label: 'Base 3', type: 'number' },
{ label: 'Base 4', type: 'number' },{ role: 'style', type: 'string', p: { role: 'style' } }],
['VAR', 0, 0, 3.42, 0, '#EEB14C'],['MIX', 0, 3.42, 3.73, 0, '#69AA51'],
['BNS', 0, 3.73, 3.42, 0, '#D53C38'],['MTRL', 0, 3.42, 2.34, 0, '#D53C38'],
['OTHER', 0, 2.34, 2.69, 0, '#69AA51'],['CORP', 0, 2.69, 0.7, 0, '#D53C38'],
['COST', 0, 0.7, 1.94, 0, '#69AA51'],['PNL', 0, 1.94, 0, 0, '#EEB14C']]
);
var options = {
animation: {duration: 1500,easing: 'inAndOut',startup: true},
backgroundColor: 'transparent',bar: {group: {width: '85%'}},
chartArea: {left: 50,right: 20,bottom: 60,top: 50,width: "100%",height: "70%"},
hAxis: {textStyle: {fontSize: 12}},
height: 400,
legend: 'none',
seriesType: 'bars',
series: {0: {type: 'candlesticks'}},
tooltip: {isHtml: true,trigger: 'both'},
vAxis: {format: 'short',textStyle: {color: '#616161'},viewWindow: {min: 0,max: 11}},
width: '100%',
annotations: {stem: {color: "transparent",length: 100},
textStyle: {color: "#000000",fontSize: 16,}}
};
var chart = new google.visualization.ChartWrapper();
chart.setChartType('ComboChart');
chart.setDataTable(dataChart);
chart.setContainerId('chart_var');
chart.setOptions(options);
chart.draw();
}
</script>
</head>
<body>
<div id="chart_var"></div>
</body>
</html>