# File lib/scruffy/components/legend.rb, line 22 def draw(svg, bounds, options={}) if options[:title] svg.text(options[:y_legend], :class => 'title', :x => (0), :y => 0, 'font-size' => options[:theme].legend_font_size || relative(100), 'font-family' => options[:theme].font_family, :transform => "translate(#{bounds[:width] / 2},#{bounds[:height]/2}) rotate(#{-90})", :fill => options[:theme].marker, :stroke => 'none', 'stroke-width' => '0', 'text-anchor' => (@options[:text_anchor] || 'middle')) end end