Hi, is it possible to combine two values to get vertical axis labes (or values) like shown in a picture?
<https://lh3.googleusercontent.com/-waEUDERJu9E/VMqbSA6ksuI/AAAAAAAABCY/G8LdIAKl0eY/s1600/interval.png> Cannot find any info about this, now I'm getting only one value in vertical axis. google.load("visualization", "1.1", {packages: ["bar"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = {{ moneyChart|raw }}; var maxItemsVal = 0; var rows = new Array(['year', 'amount']); $.each(data, function (index, value) { value[0] = value[0]; value[1] = Math.round(value[1] * 100) / 100; value[2] = Math.round(value[2] * 100) / 100; rows.push (new Array(value[0], value[1])); if (value[1] > maxItemsVal) { maxItemsVal = value[1]; } }); console.log(rows); var dataTable = google.visualization.arrayToDataTable(rows); var chart = new google.charts.Bar(document.getElementById('money_graph')); var options = { focusTarget: 'category', legend: {position: 'none'}, bars: 'horizontal', vAxis: {textPosition: 'in', maxValue: maxItemsVal + 20, minValue: 0}, hAxis: {textPosition: 'in', maxValue: maxItemsVal + 20, minValue: 0}, chartArea: {width: '100%', height: '80%'} }; chart.draw(dataTable, options); } -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
