Permalink
Browse files

Missing burndown chart partial added eek

  • Loading branch information...
1 parent 43558e5 commit 86ac9d616382f9c9e1c2237f153f297f9f677530 Steve committed May 16, 2011
Showing with 19 additions and 0 deletions.
  1. +19 −0 app/views/iterations/_burndown_chart.html.erb
@@ -0,0 +1,19 @@
+<% content_for :js_includes do %>
+<script type="text/javascript" src="https://www.google.com/jsapi"></script>
+<script type="text/javascript">
+ google.load("visualization", "1", {packages:["corechart"]})
+ google.setOnLoadCallback(drawChart)
+ function drawChart() {
+ var data = new google.visualization.DataTable(<%= burndown_data_js(@iteration) %>)
+ var chart = new google.visualization.LineChart(document.getElementById('burndown_chart'))
+ chart.draw(data, {
+ width: 1000, height: 550,
+ title: "<%= @iteration.name %> burndown",
+ vAxis: {minValue:0, maxValue:<%=@iteration.velocity %>},
+ hAxis: {textStyle:{fontSize:12},slantedText:true,slantedTextAngle:60}
+ })
+ }
+</script>
+<% end %>
+
+<div id="burndown_chart" style="margin-left:-150px"></div>

0 comments on commit 86ac9d6

Please sign in to comment.