Adds an axis_type GChart::Axis to the chart’s set of axes. See GChart::Axis::AXIS_TYPES.
axis_type
GChart::Axis
axes
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