Sha256: 1fa7c91074b45f4305ebea16b2894d7c751d3a6c9b3f5884984c45e2eb39ba8b
Contents?: true
Size: 429 Bytes
Versions: 9
Compression:
Stored size: 429 Bytes
Contents
# By default, <code>chart</code> plots a column for each series. # # You can use the <code>:type</code> option to plot a point 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: :point, labels: [false, true], formats: [] end
Version data entries
9 entries across 9 versions & 1 rubygems