Sha256: fb0d3ce32e92665ba161ccc57f04d17019aea21905a7c340dbb2987adb1555ba
Contents?: true
Size: 490 Bytes
Versions: 1
Compression:
Stored size: 490 Bytes
Contents
# By default, .. # # You can use .. filename = File.basename(__FILE__).gsub('.rb', '.pdf') Prawn::ManualBuilder::Example.generate(filename) do data = {'Earnings' => {2013 => 104_323, 2014 => 27_234, 2015 => 34_123}, 'Views' => {2013 => 182, 2014 => 46, 2015 => 88}, 'Uniques' => {2013 => 104, 2014 => 27, 2015 => 14}} chart data, type: :two_axis, height: 150, labels: [true, false, false], formats: [:currency], line_width: 0.5, colors: ['6f3d79', '7d807f'] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
squid-1.2.0 | examples/squid/two_axis.rb |