lib/annotated_timeline.rb
#you must create a div on your page and pass in the div id
you must create a div on your page and pass in the div id
you must create a div on your page and pass in the div id
def annotated_timeline(daily_counts_by_type, div_id = 'graph', options = {})
    @time_zone  = options.delete(:timeZone)
    daily_graph = is_daily?(daily_counts_by_type)
    google_graph_html = google_graph_data(daily_counts_by_type, daily_graph, options)
    google_options = format_options_for_javascript(options, daily_graph)
    data_args = google_options.any? ? "data, {#{google_options.join(", ")}}" : "data"
    html = "<script type=\"text/javascript\">
    google.load(\"visualization\", \"1\", {packages:[\"annotatedtimeline\"]});
    google.setOnLoadCallback(drawChart);
    function drawChart(){
      var data = new google.visualization.DataTable();
      #{google_graph_html}
      var chart = new google.visualization.AnnotatedTimeLine(document.getElementById(\'#{div_id}\'));
      chart.draw(#{data_args}); 
    }
    </script>"
  end
def annotated_timeline ( daily_counts_by_type , div_id = 'graph' , options = { } ) @time_zone = options . delete ( :timeZone ) daily_graph = is_daily? ( daily_counts_by_type ) google_graph_html = google_graph_data ( daily_counts_by_type , daily_graph , options ) google_options = format_options_for_javascript ( options , daily_graph ) data_args = google_options . any? ? "data, {#{google_options.join(", ")}}" : "data" html = "<script type=\"text/javascript\">
    google.load(\"visualization\", \"1\", {packages:[\"annotatedtimeline\"]});
    google.setOnLoadCallback(drawChart);
    function drawChart(){
      var data = new google.visualization.DataTable();
      #{google_graph_html}
      var chart = new google.visualization.AnnotatedTimeLine(document.getElementById(\'#{div_id}\'));
      chart.draw(#{data_args}); 
    }
    </script>" end
you must create a div on your page and pass in the div id
you must create a div on your page and pass in the div id
daily_counts_by_type
<not_specific>
div_id
<not_specific>
options
<not_specific>