Hi Fernando,

Because of the way that the layout is done in the Classic Charts, we can't
make any guarantees about the axis size, nor can we determined the correct
position for the legend given a right axis. So, sadly, you cannot use a
right axis and have your legend on the right when using Classic Charts. You
could put the legend on top or bottom without any issues.

However, for the newly released Material Charts, we changed how we do
layout, so they actually do support both multiple axes and having the
legend on the right. However, we haven't gotten around to implementing a
lot of the features you might be used to from Classic Charts yet. For
instance, they do not yet support the 'enableInteractivity' option.

On Fri, May 8, 2015 at 2:13 PM Fernando Iwamoto <[email protected]>
wrote:

> When comment the series and vAxes to make my right y-axis appear, the
> legend on the right will be removed. Theres is another workaround?
>
> Im calling my chart like this:
>
> google.load("visualization", "1", {packages:["corechart"]});
> google.setOnLoadCallback(drawChart);
>
> But when I set up the options like this in my function drawChart:
>
> var options = {
>         series: {
>             0: { axis: 'deep'},
>             8: { axis: 'ppm' ,targetAxisIndex: 1, color:'none' }
>         },
>         vAxes:{
>             0: { title:'Deep(m)' },
>             1: { title:'VOC(ppm)' }
>         },
>         enableInteractivity: false,
>         isStacked: true,
>         legend: { position: 'right' },
>      };
>
> var chart = new
> google.visualization.ColumnChart(document.getElementById('chart'));
> chart.draw(data, 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.
>

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