Skip to content

Commit

Permalink
remove prototype dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Stein committed Sep 9, 2008
1 parent e3df8ba commit 4d399ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/annotated_timeline.rb
Expand Up @@ -8,7 +8,7 @@ def annotated_timeline(daily_counts_by_type, width = 750, height = 300, element
html += "function drawChart(){"
html += "var data = new google.visualization.DataTable(); \n"
html += google_graph_data(daily_counts_by_type)
html += "var chart = new google.visualization.AnnotatedTimeLine($(\'#{element}\')); \n"
html += "var chart = new google.visualization.AnnotatedTimeLine(document.getElementById(\'#{element}\')); \n"
html += "chart.draw(data"


Expand All @@ -27,7 +27,7 @@ def annotated_timeline(daily_counts_by_type, width = 750, height = 300, element
html += "); } \n"
html += "</script>"
html += "<div id=\"#{element}\" style=\"width: #{width}px\; height: #{height}px\;\"></div>"

html
end

def google_graph_data(daily_counts_by_type)
Expand Down

0 comments on commit 4d399ac

Please sign in to comment.