Sha256: 05d3e42ec69dc4232f9f274ff0d6dbded3c3b070802e903a2ec31881dc283c55

Contents?: true

Size: 366 Bytes

Versions: 11

Compression:

Stored size: 366 Bytes

Contents

# By default, <code>chart</code> adds a legend in the top-right corner.
#
# You can use the <code>:legend</code> option to disable this behavior.
#
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: false
end

Version data entries

11 entries across 11 versions & 1 rubygems

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