lib/gruff/area.rb in topfunky-gruff-0.3.2 vs lib/gruff/area.rb in topfunky-gruff-0.3.3

- old
+ new

@@ -14,10 +14,10 @@ @norm_data.each do |data_row| poly_points = Array.new prev_x = prev_y = 0.0 @d = @d.fill data_row[DATA_COLOR_INDEX] - data_row[1].each_with_index do |data_point, index| + data_row[DATA_VALUES_INDEX].each_with_index do |data_point, index| # Use incremented x and scaled y new_x = @graph_left + (@x_increment * index) new_y = @graph_top + (@graph_height - data_point * @graph_height) if prev_x > 0 and prev_y > 0 then