Sha256: 4946f4e3226c2d6011aa722c970571710c080489da92a16484e15c3c6dc3a793
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
# By default, <code>chart</code> plots a graph for each series. # # Provide multiple key/value pairs to <code>:data</code> to plot multiple series. filename = File.basename(__FILE__).gsub('.rb', '.pdf') Prawn::ManualBuilder::Example.generate(filename) do data = {views: {2013 => 182, 2014 => 46, 2015 => 88}, uniques: {2013 => 104, 2014 => -27, 2015 => 14}} chart data, labels: true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squid-1.0.0.beta2 | examples/squid/columns.rb |
squid-1.0.0.beta1 | examples/squid/columns.rb |