Sha256: a953ce0df9261acc58bf02c0fbde7cba79e627202288e6eee1b2e3fa51563e17

Contents?: true

Size: 380 Bytes

Versions: 9

Compression:

Stored size: 380 Bytes

Contents

# By default, <code>chart</code> plots a baseline at the bottom of the graph.
#
# You can use the <code>:baseline</code> option to disable this behavior.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {earnings: {2013 => 182, 2014 => 46, 2015 => 8020}}
  chart data, baseline: false, formats: [:currency]
end

Version data entries

9 entries across 9 versions & 1 rubygems

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