examples/squid/two_axis.rb in squid-1.0.0.beta2 vs examples/squid/two_axis.rb in squid-1.0.0.beta3

- old
+ new

@@ -1,10 +1,10 @@ # By default, .. # # You can use .. filename = File.basename(__FILE__).gsub('.rb', '.pdf') Prawn::ManualBuilder::Example.generate(filename) do - - data = {views: {2013 => 182, 2014 => 46, 2015 => 88}, - earnings: {2013 => 104_323, 2014 => 27_234, 2015 => 14_123}} - chart data, type: :two_axis, border: true + 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