examples/squid/stacks.rb in squid-1.0.0.beta2 vs examples/squid/stacks.rb in squid-1.0.0.beta3
- old
+ new
@@ -4,7 +4,7 @@
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
data = {views: {2013 => 196, 2014 => 66, 2015 => -282},
hits: {2013 => 100, 2014 => -12, 2015 => 82},
uniques: {2013 => -114, 2014 => 47, 2015 => -14}}
- chart data, type: :stack, labels: true
+ chart data, type: :stack, labels: [true, false, true], formats: [:currency, :float, :percentage]
end