lib/SVG/Graph/Bar.rb in svg-graph-2.1.0 vs lib/SVG/Graph/Bar.rb in svg-graph-2.1.1
- old
+ new
@@ -115,10 +115,10 @@
# value min length
# +ve +ve value - min
# +ve -ve value - 0
# -ve -ve value.abs - 0
- value = dataset[:data][i]/@y_scale_division
+ value = dataset[:data][i] / @y_scale_division.to_f
left = (fieldwidth * field_count)
length = (value.abs - (minvalue > 0 ? minvalue : 0)) * unit_size
# top is 0 if value is negative