Method: GChart::Map#initialize

Defined in:
lib/gchart/map.rb

#initialize(*args, &block) ⇒ Map

Returns a new instance of Map.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/gchart/map.rb', line 8

def initialize(*args, &block)
  super(*args, &block)
  # Set some sane defaults so that the only requirement is data
  @area = 'world' #default
  @background = 'dfdfff' #make it look like water
  @colors = ['ffffff','f8fcf8','006c00']
  #Set the maximum size for maps (this is a better default because
  # it is also the proper aspect ratio)
  @width = '440'
  @height = '220'
end