Method: GChart::Base#axis

Defined in:
lib/gchart/base.rb

#axis(axis_type, &block) ⇒ Object

Adds an axis_type GChart::Axis to the chart’s set of axes. See GChart::Axis::AXIS_TYPES.



108
109
110
111
112
# File 'lib/gchart/base.rb', line 108

def axis(axis_type, &block)
  axis = GChart::Axis.create(axis_type, &block)
  @axes.push(axis)
  axis
end