Sha256: c54151b38ff755d212eea5312728e0aa8f6646d5541273125fa0ae86dedcbbf3

Contents?: true

Size: 348 Bytes

Versions: 9

Compression:

Stored size: 348 Bytes

Contents

# By default, <code>chart</code> generates charts with default colors.
#
# You can use the <code>:color</code> option to manually set the color.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {views: {2013 => 18.2, 2014 => 4.6, 2015 => 10.2}}
  chart data, color: '6f3d79'
end

Version data entries

9 entries across 9 versions & 1 rubygems

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