Sha256: 3bb73560cc74375bf7edd4faf15330ea4283f0137b6820e8776540bee0ba5a80

Contents?: true

Size: 419 Bytes

Versions: 9

Compression:

Stored size: 419 Bytes

Contents

# By default, <code>chart</code> plots a graph for each series.
#
# Provide multiple key/value pairs to <code>:data</code> to plot multiple series.
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {2013 => 182, 2014 => 46, 2015 => 88},
        uniques: {2013 => 104, 2014 => -27, 2015 => 14}}
  chart data, label: true, format: :percentage
end

Version data entries

9 entries across 9 versions & 1 rubygems

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