Sha256: 03a0d77875d1cfd47d40b4d1bd585063b6217a7a82eee10af4ed47bd0505bfba

Contents?: true

Size: 347 Bytes

Versions: 11

Compression:

Stored size: 347 Bytes

Contents

# By default, <code>chart</code> generates charts with a height of 250.
#
# You can use the <code>:height</code> option to manually set the height.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {2013 => 18.2, 2014 => 4.6, 2015 => 10.2}}
  chart data, height: 350
end

Version data entries

11 entries across 11 versions & 1 rubygems

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