Sha256: ec8ccb9bea8543b9294022d8b40ee43e934f063b8f76d6a179700af774a6d14e
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
# By default, <code>chart</code> plots multiple columns next to each other. # # You can use the <code>:type</code> option to plot stacked columns instead. 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squid-1.0.0.beta2 | examples/squid/stacks.rb |
squid-1.0.0.beta1 | examples/squid/stacks.rb |