This demo uses Aaron Conran's Ext-JS user extension to create a panel with an Annotated Time Line that displays the "Greatest DJIA Daily Point Gains."
GVisualizationPanel contains two main pieces, a Google data table adapter and the actual user extension. The data table adapter converts the Ext data store we know and love to the more simplified version required by the Google API.
Here we create a simple data store using inline data. You can easily replace this with a JsonStore and retrieve live data from a remote proxy instead.
* Data available from Dow Jones Indexes.
Here we instantiate the Ext.ux.GVisualizationPanel user extension and configure it to load the store defined above.
Note that the visualization package for annotatedtimeline is not defined by default in the user extension, so you need to pass it as an object literal visualizationPkg: {'annotatedtimeline': 'AnnotatedTimeLine'}.
AnnotatedTimeLine translates into the class name google.visualization.AnnotatedTimeLine
Download the source code here.
Learn more about the Ext-JS GVisualizationPanel user extension and Google Visualization API. Got a question? Ask it here.
© Copyright 2006-2012 Claude Betancourt
Email: cbetancourt at gmail
Phone: +1 (234) 5 CLAUDE
Code Snippets by Claude Betancourt is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.
Based on a work at code.betancourt.us.

