Sha256: a9996ed6decced6936d21b3d39227f0086e265e6d17f5ef1dc5963824c40f48d

Contents?: true

Size: 341 Bytes

Versions: 11

Compression:

Stored size: 341 Bytes

Contents

# By default, <code>chart</code> plots a column chart.
#
# You can use the <code>:type</code> option to plot a point chart instead.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {Safari: 45.20001, Firefox: 63.3999, Chrome: 21.4}}
  chart data, type: :point
end

Version data entries

11 entries across 11 versions & 1 rubygems

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