Setting the axis options is easy:
vAxes: {
0: {
// left axis options
},
1: {
// right axis options
}
}
For your series, you will have to keep track of what data series are
currently being drawn, and in what order they appear in the view. You then
build a "series" option to fit the data. As an example of one way you
could do this:
// assumes that data series are repeated once, in the order <data set 1>,
<data set 2>
// as opposed to <data set 1, series 1>, <data set 2, series 1>, <data set
1, series 2>, <data set 2, series 2>, etc
var series = {};
var numberOfSeries = columnIndices.length - 1
for ( var i = 0; i < numberOfSeries; i++) {
series[i] = {
targetAxisIndex: (columnIndices[i + 1] <= numberOfSeries / 2) ? 0 :
1;
}
}
chart.setOption('series', series);
On Thursday, February 14, 2013 11:45:52 AM UTC-5, Workaholic wrote:
>
> Thanks,
> I've already synchronized the column selector with any changes in the drop
> boxes and it works.
> My chart now draws each data column twice, and once I remove one data
> column from the column selector, the two lines
> for that column are removed from the chart(this is good for me).
> For now the series are defined for the first and second columns(just for
> me be able to describe you the situation).
> So the only thing left to do is define the two y axis to the right area of
> the joined table.
> I hope I make myself clear, I have attached the drawn chart.
> Thanks again.
>
> On Thursday, February 14, 2013 10:34:36 AM UTC+2, Workaholic wrote:
>>
>> Hi,
>> I've 2 tables with the same labels as attached.
>> I've a chart displaying only one of them for now("chart.jpg").
>> Is it possible to mix them to one chart with two y axis, each displaying
>> different table?
>>
>> Thanks.
>>
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.