Good evening, I'm trying to set up the vertical axis of the chart, but the
ticks option is not working. How do I make it work in this type of graphic?
google.charts.load('current', {'packages':['line','bar']});
google.charts.setOnLoadCallback(drawTable);
google.charts.setOnLoadCallback(drawTable2);
function drawTable(){
$.ajax({
url: "php/loadDadosCurvaABCServicos.php",
data: {idOrcamento:idOrcamento, idObra:idObra},
dataType: "json",
async: false,
success: function(jsonData){
var data = new google.visualization.DataTable(jsonData);
var chart = new
google.charts.Line(document.getElementById('chart_div1'));
var options = {
legend: {
position: 'none',
alignment: 'center'
},
vAxis: {
format: 'percent',
ticks: [0, .2, .4, .6, .8, 1],
title: 'Percentagem Acumulada'
},
//focusTarget: 'category',
tooltip: { isHtml: true },
width: 1200,
height: 600
};
chart.draw(data, google.charts.Line.convertOptions(options));
}
}).responseText;
}
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/080a41d4-c577-4ffc-915e-02d2928c4df1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.