Sha256: 44ed516a7e54cf8d5f98a1a47236655b64de6d36afbd2c1646adf310a48f0f90

Contents?: true

Size: 431 Bytes

Versions: 8

Compression:

Stored size: 431 Bytes

Contents

# You can specify the format of the axis values with the <code>:format</code> option.
#
# Valid options are: <code>:percentage</code>, <code>:currency</code>, <code>:seconds</code>, <code>:float</code>.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {Safari: 45.20001, Firefox: 33.3999, Chrome: nil}}
  chart data, format: :percentage, label: true
end

Version data entries

8 entries across 8 versions & 1 rubygems

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