Module: RCharts::GraphHelper::Graph::Axis::Positioning
- Extended by:
- ActiveSupport::Concern
- Includes:
- Ticks
- Included in:
- RCharts::GraphHelper::Graph::Axis
- Defined in:
- app/helpers/rcharts/graph_helper/graph/axis/positioning.rb
Overview
:nodoc:
Constant Summary collapse
- QUANTIZATION =
{ ...(5.days) => :adjusted_minimum, (5.days)...(2.weeks) => :week_start, (2.weeks)...(2.months) => :month_start, (2.months)...(4.months) => :quarter_start, (4.months)...(10.months) => :half_year_start, (10.months)... => :year_start }.freeze
- ROUNDING =
{ ...(1.day) => -> { it }, (1.day)...(7.days) => -> { it.in_days.round.days }, (7.days)...(1.month) => -> { it.in_weeks.round.weeks }, (1.month)...(1.year) => -> { it.in_months.round.months }, (1.year)... => -> { it.in_years.round.years } }.freeze
Constants included from Ticks
Ticks::DECIMAL_INTERVALS, Ticks::TARGET_TICK_COUNT, Ticks::TEMPORAL_INTERVALS