Sha256: b7750b40b5f1a9e5a6a89b2beed8704a9d86c4b5fae6a3a30647291ee4dc942d

Contents?: true

Size: 348 Bytes

Versions: 11

Compression:

Stored size: 348 Bytes

Contents

# By default, <code>chart</code> plots 5 equidistant horizontal gridlines.
#
# You can use the <code>:steps</code> option to change this number.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {2013 => 182000, 2014 => -46000, 2015 => 102000}}
  chart data, steps: 8
end

Version data entries

11 entries across 11 versions & 1 rubygems

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