Module: RCharts::GraphHelper::Graph::Axis::Ticks

Extended by:
ActiveSupport::Concern
Included in:
RCharts::GraphHelper::Graph::Axis, Positioning
Defined in:
app/helpers/rcharts/graph_helper/graph/axis/ticks.rb

Overview

:nodoc:

Constant Summary collapse

INTERVAL_FACTORS =
[1, 2, 5, 10, 30].freeze
INTERVAL_BASES =
ActiveSupport::Duration::PARTS_IN_SECONDS
ALL_INTERVALS =
INTERVAL_BASES.values.flat_map { |base| INTERVAL_FACTORS.collect { base * it } }