Sha256: 9403edb809df4bb7e9b2ef815df9afa8a019d149cfbdcad122c52dd677a2ebc4

Contents?: true

Size: 351 Bytes

Versions: 11

Compression:

Stored size: 351 Bytes

Contents

# Creating graphs with Squid is easy. Just use the <code>chart</code> method.
#
# Provide a hash containing the data of the series and plot it with <code>chart</code>.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {2013 => 182, 2014 => 46, 2015 => 134}}
  chart data
end

Version data entries

11 entries across 11 versions & 1 rubygems

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