Class: RCharts::GraphHelper::Graph::Axis
- Inherits:
-
Object
- Object
- RCharts::GraphHelper::Graph::Axis
- Includes:
- ActiveModel::API, ActiveModel::Attributes, Positioning, Ticks
- Defined in:
- app/helpers/rcharts/graph_helper/graph/axis.rb,
app/helpers/rcharts/graph_helper/graph/axis/ticks.rb,
app/helpers/rcharts/graph_helper/graph/axis/caster.rb,
app/helpers/rcharts/graph_helper/graph/axis/domain.rb,
app/helpers/rcharts/graph_helper/graph/axis/positioning.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Positioning, Ticks Classes: Caster, Domain
Constant Summary
Constants included from Positioning
Positioning::QUANTIZATION, Positioning::ROUNDING
Constants included from Ticks
Ticks::DECIMAL_INTERVALS, Ticks::TARGET_TICK_COUNT, Ticks::TEMPORAL_INTERVALS
Instance Method Summary collapse
Instance Method Details
#categorical? ⇒ Boolean
28 29 30 |
# File 'app/helpers/rcharts/graph_helper/graph/axis.rb', line 28 def categorical? discrete == :categorical end |
#discrete? ⇒ Boolean
24 25 26 |
# File 'app/helpers/rcharts/graph_helper/graph/axis.rb', line 24 def discrete? discrete.present? end |
#horizontal? ⇒ Boolean
32 33 34 |
# File 'app/helpers/rcharts/graph_helper/graph/axis.rb', line 32 def horizontal? name == :x end |
#vertical? ⇒ Boolean
36 37 38 |
# File 'app/helpers/rcharts/graph_helper/graph/axis.rb', line 36 def vertical? name == :y end |