lib/lilygraph.rb in lilygraph-0.4.0 vs lib/lilygraph.rb in lilygraph-0.4.1

- old
+ new

@@ -223,10 +223,10 @@ xml.rect :fill => '#ffffff', :stroke => '#000000', 'stroke-width' => 2, :x => legend_x, :y => legend_y, :width => (2.5 * @options[:margin][:right]), :height => (@legend.size * 15) + 16 @legend.sort.each_with_index do |data, index| color, label = data xml.rect :fill => color, :stroke => color, 'stroke-width' => 0, :x => legend_x + 10, :y => legend_y + 10 + (index * 15), :width => 35, :height => 10 - xml.text label, :x => legend_x + 70, :y => legend_y + 18 + (index * 15), 'text-anchor' => 'left' + xml.text label, :x => legend_x + 55, :y => legend_y + 18 + (index * 15), 'text-anchor' => 'left' end end # Yield in case they want to do some custom drawing and have a block ready yield(xml, @options) if block_given?