Sha256: d0589d17f0b89054aa00bb1f4771e85b33ab1a4cba02d7f163329389818aca10

Contents?: true

Size: 472 Bytes

Versions: 9

Compression:

Stored size: 472 Bytes

Contents

# By default, <code>chart</code> plots a column for each series.
#
# You can use the <code>:type</code> option to plot a line chart instead.
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, type: :line, labels: [false, true], formats: %i(percentage percentage), line_widths: [0.5]
end


Version data entries

9 entries across 9 versions & 1 rubygems

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