fareastside / annotatedtimeline-for-rails

Use the Google Visualization Annotated Timeline API with Rails

This URL has Read+Write access

fareastside (author)
Fri Aug 29 08:24:27 -0700 2008
commit  e3df8ba622bf86b4a37e6c4d9535002f8a4518a2
tree    3469f2025c74de11df7cade7d79115914873092a
parent  6182cec12df2651a955883335c4acf5dbd49d438
name age message
file README Loading commit data...
file Rakefile
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
README
AnnotatedTimeline
=================

In the view:
  <%= annotated_timeline(daily_counts_by_type, width, height, 'div-name', options) %>

daily_counts_by_type should look like:
  {Datetime1 => { :foo=>123, :bar=>100}, Datetime2 => { :foo=>736, :bar=>423}, Datetime3 => { :foo=>412, :bar=>678 } }
This will graph foo versus bar over time.

***Google Visualization API Doc: http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html
***Note that at the moment, annotations are not supported.



Options
=======

:colors (array of strings) The colors to use to override the default google color scheme for the chart lines and labels. 
Each element is a string in a valid HTML color format. For example 'red' or '#00cc00'. 

:displayExactValues (boolean) - If set to false (the default), value displayed on top may be in a shorter approximated 
form (56.12k instead of 56123.45). If set to true, values will appear unchanged. 

:min (number) - Use to explicitly set the minimal value to show in the Y axis.

:scaleType (string) - 'fixed'(default) or 'maximize'. If 'maximize' is used, the range of the values axis will span 
between the minimal and maximal values of the DataTable. If 'fixed' is used, the range of the values axis will span 
between zero and the maximal values of the DataTable. 

:wmode (string) - 'opaque'(default), 'window' or 'transparent'. the Window Mode (wmode) parameter for the Flash chart. 

:zoomStartTime (datetime) -    If specified, sets the start time of the selected zoom range. 

:zoomEndTime (datetime) -  If specified, sets the end time of the selected zoom range. 





Annotations *not supported at the moment*
===========
:allowHtml
:annotationsWidth
:displayAnnotations
:displayAnnotationsFilter