Sha256: e378217950df9a4459244f2a8c25d40c5cd7eef3d43773812f639ec5673b66d1

Contents?: true

Size: 396 Bytes

Versions: 9

Compression:

Stored size: 396 Bytes

Contents

# By default, <code>chart</code> adds a legend in the top-right corner.
#
# You can use the <code>:legend</code> option to change the position of the legend.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {2013 => 182, 2014 => 46}, uniques: {2013 => 94, 2014 => 27}}
  chart data, legend: {right: 50, bottom: 20}
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
squid-1.4.1 examples/squid/legend_offset.rb
squid-1.4.0 examples/squid/legend_offset.rb
squid-1.3.0 examples/squid/legend_offset.rb
squid-1.2.0 examples/squid/legend_offset.rb
squid-1.1.0 examples/squid/legend_offset.rb
squid-1.0.1 examples/squid/legend_offset.rb
squid-1.0.0 examples/squid/legend_offset.rb
squid-1.0.0.beta4 examples/squid/legend_offset.rb
squid-1.0.0.beta3 examples/squid/legend_offset.rb