I have a chart (and code below) where the vertical axis needs to show 1 at
the top and the highest number at the bottom, at the moment it is the other
way around - how do I this?
Thanks in advance for your help
Paul
Code
<html>
<head>
<script type="text/javascript"
src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Month', 'UK Rank', 'SOR 2014 Rank'],
['May 14', 47, 28],
['July 14b', 43, 6],
['July 14e', 40, 4],
]);
var options = {
title: 'Rankings Tracker'
};
var chart = new
google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);getVAxisValue(0,-1)
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
--
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.