Sha256: f592a068504fec6cae7783dc1174e9980857d4f91c72ecce4f520e23f70b0d99

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 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: true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
squid-1.0.0.beta2 examples/squid/points.rb
squid-1.0.0.beta1 examples/squid/points.rb