Sha256: 0929507f19deea6fde9ed7afd13ca0063f063df482c8d24c0c1475d9241a7baa

Contents?: true

Size: 495 Bytes

Versions: 11

Compression:

Stored size: 495 Bytes

Contents

# By default, <code>chart</code> plots every category on the baseline.
#
# You can use the <code>:every</code> option to change this behavior.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
 data = {views: {'Jan 1' => 12, 'Jan 2' => 13, 'Jan 3' => 21, 'Jan 4' => 42,
 'Jan 5' => 32, 'Jan 6' => 45, 'Jan 7' => 62, 'Jan 8' => 22, 'Jan 9' => 31,
 'Jan 10' => 11, 'Jan 11' => 40, 'Jan 12' => 6, 'Jan 13' => 9}}
 chart data, every: 3
end

Version data entries

11 entries across 11 versions & 1 rubygems

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