lib/seer/gauge.rb in seer-0.4.0 vs lib/seer/gauge.rb in seer-0.5.0
- old
+ new
@@ -7,11 +7,11 @@
# @data = Widgets.all # Must be an array, and must respond
# # to the data method specified below (in this example, 'quantity')
#
# In your view:
#
- # <div id="chart" class="chart"></div>
+ # <div id="chart"></div>
#
# <%= Seer::visualize(
# @data,
# :as => :gauge,
# :in_element => 'chart',
@@ -90,10 +90,10 @@
google.load('visualization', '1', {'packages':['gauge']});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
#{data_columns}
-#{data_table.to_s}
+#{data_table.join}
var options = {};
#{options}
var container = document.getElementById('#{self.chart_element}');
var chart = new google.visualization.Gauge(container);
chart.draw(data, options);