AnnotatedTimeline migration tool

239 views
Skip to first unread message

asgallant

unread,
Feb 13, 2013, 12:16:41 AM2/13/13
to google-visua...@googlegroups.com
I frequently see questions come up here in regards to problems with the AnnotatedTimeline charts, which are difficult or effectively impossible to solve in ATL charts but are easily solvable using a Dashboard with a LineChart and a ChartRangeFilter.  I recognize that migrating may not be an easy task for some API users, so in aide of users who wish to make the migration, I am developing a tool which attempts to simplify the process to the greatest extent possible.  In its most basic form, the tool requires very little changes to code based on an existing AnnotatedTimeline:

1) load the "controls" package instead of the "annotatedtimeline" package
2) change "google.visualization.AnnotatedTimeline" to "asgallant.LineChartAsAnnotatedTimeline"
3) when calling the chart's draw method, pass "true" as a 3rd parameter, to tell the tool to convert from ATL options to LineChart options

The tool also offers more comprehensive options which allow for customization of the chart and control for more advanced users (they accept the same options as ComboCharts and ChartRangeFilters, respectively).  The attached "example.html" file offers more details on how to use the tool.

Events do not currently bubble up to the migration tool, but you can register for events by using one of the #getChart, #getChartWrapper, #getControl, or #getControlWrapper methods, depending on the nature of your event handler.

This is currently in beta stage, I don't recommend you use this tool for any production charts, but I would appreciate any feedback on bugs and suggestions for improvement.
asgallant.LineChartAsAnnotatedTimeline[0.4b].js
example.html

Olemis Lang

unread,
Feb 13, 2013, 3:15:03 AM2/13/13
to google-visua...@googlegroups.com
On 2/13/13, asgallant <drew_g...@abtassoc.com> wrote:
> I frequently see questions come up here in regards to problems with the
> AnnotatedTimeline charts, which are difficult or effectively impossible to
> solve in ATL charts but are easily solvable using a
> Dashboard<https://developers.google.com/chart/interactive/docs/gallery/controls#dashboardobject>with
> a
> LineChart<https://developers.google.com/chart/interactive/docs/gallery/linechart>and
> a
> ChartRangeFilter<https://developers.google.com/chart/interactive/docs/gallery/controls#chartrangefilter>.
>

What about ATL gadget ?

PS: BTW , where is it possible to find either documentation or sample
code to embed ATL gadget by loading data from a Google spreadsheet ?

PS: Please , feel free to fork the conversation when answering tha
last question if you think it's too off-topic .

--
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

asgallant

unread,
Feb 13, 2013, 11:19:56 AM2/13/13
to google-visua...@googlegroups.com
This does not deal with gadgets, though I'm sure you could make it into one.
Reply all
Reply to author
Forward
0 new messages