Sha256: 7d45b5bfccc96b7aa69a47a73e9ea73e8e57b9f68e5137c96c4f96329d84828c

Contents?: true

Size: 380 Bytes

Versions: 11

Compression:

Stored size: 380 Bytes

Contents

# By default, <code>chart</code> uses a line width of 3 for line charts.
#
# You can use the <code>:line_width</code> option to customize this value.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {2013 => 182, 2014 => 46, 2015 => 802000000000000000000}}
  chart data, type: :line, line_width: 10
end

Version data entries

11 entries across 11 versions & 1 rubygems

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