It's hard to know without seeing the code (there are a handful of things
that are likely to be the problem, its just a matter of which ones affect
you). There is a much simpler way to accomplish this, though, than
duplicating the code: use DataViews to filter the data you feed each chart.
Something like this: http://jsfiddle.net/DDrpn/5/
On Wednesday, June 6, 2012 2:04:13 PM UTC-4, far m wrote:
>
> What if I like to do query on columns M, B, C.
> Then, I like to plot M and B on one chart and M and C on another
> I am duplicating the function calls and variables, but only the last one
> shows up. What happens to the firs chart?
> Thanks
>
> On Friday, June 1, 2012 6:51:08 AM UTC-7, asgallant wrote:
>>
>> Two things:
>>
>> 1) You need to change the callback from drawVisualization to drawChart
>> (or change the drawChart function's name to drawVisualization).
>> 2) You need to capitalize the "L" in AnnotatedTimeLine when creating the
>> chart:
>>
>> var chart = new google.visualization.AnnotatedTime*L*ine(document.
>> getElementById('chart_div'));
>>
>> See fix: http://jsfiddle.net/asgallant/DDrpn/4/
>>
>> On Friday, June 1, 2012 1:24:22 AM UTC-4, far m wrote:
>>>
>>> Here is the code: http://jsfiddle.net/essonoma/DDrpn/ -
>>> It is very simple! Note that my time column is in M with the following
>>> format: 5/18/2012 14:25:00
>>> THanks for your help.
>>>
>>
--
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/-/Q6iXEkkMUXUJ.
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.