Sha256: fbd9e6e1a212514d40c25ed3cbfd9ac268e5f0aebeef3ac8d3037324e1bf1bf4

Contents?: true

Size: 319 Bytes

Versions: 4

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

# Simplest line chart example
# 

data =  [
          ['January',20],
          ['February',36],
          ['March',45],
          ['April', 5]
        ]

Prawn::Document.generate('line_chart.pdf') do
  line_chart data, :at => [10, 10]
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prawn-graph-0.0.4 examples/graph/line_chart.rb
prawn-graph-0.0.3 examples/graph/line_chart.rb
prawn-graph-0.0.2 examples/graph/line_chart.rb
prawn-graph-0.0.1 examples/graph/line_chart.rb