plotex v0.1.0 Plotex.TimeUnits

Link to this section Summary

Link to this section Types

Link to this type

t()
t() :: %Plotex.TimeUnits{
  basis_name: atom(),
  diff: number(),
  order: number(),
  val: number()
}

Link to this section Functions

Link to this function

clone(dt, unit)

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)

Link to this function

optimize_units(diff_seconds, opts \\ [])
optimize_units(number(), keyword()) :: Plotex.TimeUnits.t()

Link to this function

time_scale(data, opts \\ [])

Link to this function

time_scale(dt_a, dt_b, opts)

Link to this function

units_for(dt_a, dt_b, opts)

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