Class: RCharts::GraphHelper::Graph::Axis
- Inherits:
-
Object
- Object
- RCharts::GraphHelper::Graph::Axis
show all
- 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/positioning.rb
Overview
Defined Under Namespace
Modules: Positioning, Ticks
Classes: Caster
Constant Summary
Constants included
from Ticks
Ticks::ALL_INTERVALS, Ticks::INTERVAL_BASES, Ticks::INTERVAL_FACTORS
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
|