Sha256: eb9d4ec414d8a783617a1dc1760cc40f9d20fe754563f1a1bb6e113318c5f288

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 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 = {views: {2013 => 182, 2014 => 46, 2015 => 802000000000000000}}
  chart data, baseline: false, format: :float
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
squid-1.0.0.beta2 examples/squid/baseline.rb
squid-1.0.0.beta1 examples/squid/baseline.rb