I have a graph in google chart in which I want to show the values for each bar of the graph try to do it but it did not work, by the way the type of graph is columnchart.
I want you to show the values like this graph for example
//========== aca esta el codigo de javascript=====================//
function drawChart() {
var data = google.visualization.arrayToDataTable([
['', 'Excelente', {
role: 'annotation'
}, 'Bueno', {
role: 'annotation'
}, 'Regular', {
role: 'annotation'
}, 'Deficiente', {
role: 'annotation'
}],
['Valoración\n general\n de\n la\n atención', 75, '75', 25, '25', 0, '0', 0, '0'],
['Trato', 75, '75', 25, '25', 0, '0', 0, '0'],
['Tiempo\n de\n espera', 75, '75', 25, '25', 0, '0', 0, '0'],
['Información\n clara\n y\n precisa', 75, '75', 25, '25', 0, '0', 0, '0'],
]);
var options = {
chart: {
title: 'Comunicación',
width: 300,
height: 600,
legend: 'bottom'
},
vAxis: {
minValue: 0,
maxValue: 100,
format: '#\'%\'',
direction: 1
},
hAxis: {
textStyle: {
fontSize: 17,
}
}
}
};
var chart = new google.charts.Bar(document.getElementById('div0'));
chart.draw(data, google.charts.Bar.convertOptions(options));
}
<div id="div0"></div>