Thanks Andrew but where in the code do I put the vAxis bit?

Paul


On Tue, Jul 29, 2014 at 1:45 PM, Andrew Gallant <[email protected]> wrote:

> Set the vAxis.direction option to -1.
>
>
> On Tuesday, July 29, 2014 3:49:22 AM UTC-4, Paul Preston wrote:
>>
>> 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 a topic in the
> Google Groups "Google Visualization API" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-visualization-api/sWmPv4Subco/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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.
>

-- 
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.

Reply via email to