3
I would like to add vertical lines to this graph. But I’m not getting it. I would like each group to draw a vertical line, as in this image.
My current code:
google.charts.load('current', {'packages': ['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Pergunta', 'Valor 1', 'Valor 2'],
['Pergunta 1', 2, 3],
['Pergunta 2', 4, 1],
['Pergunta 3', 1, 1]
]);
var options = {
title: '2016',
subtitle: 'Resultados',
legend: 'none',
height: 600,
pointSize: 3,
vAxis: {title: "Status", ticks: [{v: 1, f: "Ótimo"}, {v: 2, f: "Bom"}, {v: 3, f: "Regular"}, {v: 4, f: "Ruim"}]
}
};
var chart = new google.visualization.LineChart(document.getElementById('grafico'));
chart.draw(data, options);
}
Rendered:
I’d like to keep it that way:
Notice the vertical lines in each "X-axis question".
I don’t understand what you want to do, you intend to make a graph equal to the first picture?
– Taisbevalle
Do you understand that in the graph above that most brittle part are actually data, but that do not appear in the caption? It would be data that are in the range of 10 and 50. In your case how would this track? (say between the good and regular, "regularly good"?) , note who would still only have one more modifier, unless you put "10% to achieve good".
– Guilherme Lautert
I edited the question, see if they understood :)
– Eduardo Santos