Yes, you can have "holes" in your data where a given series has no values
assigned; ex, if you have two series, your DataTable can look like this:
​var data = new google.visualization.DataTable();
data.addColumn('number', 'X');
data.addColumn('number', 'Y1');
data.addColumn('number', 'Y2');
data.addRows([
[0, 1, 5],
[1, 4, null],
[2, 3, 9],
[3, null, 4],
[4, 8, 2]
]);
Y2 would have no data for X=1 and Y1 would have no data for X=4.
On Tuesday, April 3, 2012 1:41:57 PM UTC-4, cd2012 wrote:
>
> OK.
> I guess my question more specifically is that when I plot multiple graphs
> on a ComboChart, can I plot them such that each series has its own set of
> values on the x-axis? The x-axis itself is common, but each x-axis value
> does not necessarily match for every single chart.
>
> It is easy to specify values on the y-axis for each series that is being
> plotted, but I'm wondering if I can do that for the x-axis as well.
>
> Thanks for the help!
>
> On Monday, April 2, 2012 4:18:17 PM UTC-4, asgallant wrote:
>
>> I don't believe there is any way to make them have their own X-axis, but
>> you can have two y-axes, using the series.targetAxisIndex and vAxes options.
>>
>> On Monday, April 2, 2012 4:08:45 PM UTC-4, cd2012 wrote:
>>>
>>> Is there a way to plot ComboCharts with each series having its own x and
>>> y axis?
>>> Thanks!
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/F9QkCr_VjY8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.