plotex v0.3.1 Plotex.Axis.Units.Time

Link to this section Summary

Link to this section Types

Link to this type

t()

t() :: %Plotex.Axis.Units.Time{
  min_basis: atom(),
  ticks: number(),
  time_basis: atom()
}

Link to this section Functions

Link to this function

clone(dt, unit, config)

Link to this function

date_range_from(data)

date_range_from(Enumerable.t()) :: {DateTime.t(), DateTime.t()}
Link to this function

display_epoch(order)

Link to this function

dt_add(dt_start, val, units)

Link to this function

dt_compare(dt_a, dt_b)

Link to this function

next_smaller_unit(arg, config)

Link to this function

optimize_units(diff_seconds, config)

optimize_units(number(), struct()) :: t()
Link to this function

units_for(dt_a, dt_b, config)

Get units for a given date range, using the number of ticks.