Sha256: f3c7fccab6172ac3736c00ff06239feafcfce5ced9f8162598940fa32294e617
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
# By default, <code>chart</code> plots a column for each series. # # You can use the <code>:type</code> option to plot a line chart instead. 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, type: :line, labels: true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squid-1.0.0.beta2 | examples/squid/lines.rb |
squid-1.0.0.beta1 | examples/squid/lines.rb |