Class: AmCharts::Graph

Inherits:
Object
  • Object
show all
Includes:
UsesSettings
Defined in:
lib/amcharts/graph.rb

Instance Attribute Summary collapse

Attributes included from UsesSettings

#settings

Instance Method Summary collapse

Constructor Details

#initialize(value_field, type) ⇒ Graph

Returns a new instance of Graph.



8
9
10
11
12
# File 'lib/amcharts/graph.rb', line 8

def initialize(value_field, type)
  super
  @value_field = value_field
  @type = type
end

Instance Attribute Details

#chartObject

Returns the value of attribute chart.



4
5
6
# File 'lib/amcharts/graph.rb', line 4

def chart
  @chart
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/amcharts/graph.rb', line 3

def type
  @type
end

#value_fieldObject

Returns the value of attribute value_field.



3
4
5
# File 'lib/amcharts/graph.rb', line 3

def value_field
  @value_field
end