Sha256: 9e4abcc1d4b84ca34bb6e2f4aeee22adfe19e91db96707cd8f375ebd7fb6885f

Contents?: true

Size: 315 Bytes

Versions: 4

Compression:

Stored size: 315 Bytes

Contents

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

# Simplest bar chart example
# 

data =  [
          ['Cats',20],
          ['Dogs',36],
          ['Hamsters',45],
          ['Goldfish', 5]
        ]

Prawn::Document.generate('bar_chart.pdf') do
  bar_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/bar_chart.rb
prawn-graph-0.0.3 examples/graph/bar_chart.rb
prawn-graph-0.0.2 examples/graph/bar_chart.rb
prawn-graph-0.0.1 examples/graph/bar_chart.rb