Sha256: 8c59dda5df286637dc03eb357ee799792b994e47df9450259632f2a044e44ad9

Contents?: true

Size: 357 Bytes

Versions: 9

Compression:

Stored size: 357 Bytes

Contents

# By default, <code>chart</code> plots a column chart.
#
# You can use the <code>:type</code> option to plot a line 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: :line, line_width: 0.25
end

Version data entries

9 entries across 9 versions & 1 rubygems

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