You can move the axis labels to the right side by setting the
'targetAxisIndex' option to 1.

- Sergey


On Thu, Jun 27, 2013 at 9:19 PM, Hiro Zhang <[email protected]> wrote:

> One request from my business, they want the Line Chart to draw from right
> to left.
>
>
> I use the option "direction" with value "-1" for hAxis, then the hAxis is
> from right to left now.
> *But how can I move the vAxis to the right side?*
>
> Btw, if I set option "direction" with value "-1" for vAxis, the vAxis will
> from top to bottom.
>
>
> Code like:
>
>  hAxis: {
>             title: 'Distance To Sign ('+ sizeArr[arr[2]] +')',
>             titleTextStyle: {color: '#000', fontSize: '16', fontName:
> 'sans-serif'}
>             ,direction: -1
>           },
>           vAxis: {
>             title: 'Retroreflection cd/m²',
>             titleTextStyle: {color: '#000', fontSize: '16', fontName:
> 'sans-serif'},
>             textPosition: 'out'
>           },
>
>
> <https://lh5.googleusercontent.com/-FRE6P6IDE3k/Uczjq6lhGdI/AAAAAAAABEw/2zSznbwH_9M/s631/20130628091422.jpg>
>
> --
> 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/groups/opt_out.
>
>
>

-- 
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/groups/opt_out.


Reply via email to