lib/blazer/result.rb in blazer-3.0.3 vs lib/blazer/result.rb in blazer-3.0.4
- old
+ new
@@ -129,10 +129,10 @@
if chart_type == "line" || chart_type == "line2"
series = []
if chart_type == "line"
columns[1..-1].each_with_index.each do |k, i|
- series << {name: k, data: rows.map{ |r| [r[0], r[i + 1]] }}
+ series << {name: k, data: rows.map { |r| [r[0], r[i + 1]] }}
end
else
rows.group_by { |r| v = r[1]; (smart_values[columns[1]] || {})[v.to_s] || v }.each_with_index.map do |(name, v), i|
series << {name: name, data: v.map { |v2| [v2[0], v2[2]] }}
end