plotex v0.1.0 Plotex.NumberUnits

Link to this section Summary

Functions

Calculate the base-10 rank of a number.

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

Link to this section Functions

Link to this function

find_basis(x, rank, count)

Link to this function

number_scale(x_a, x_b, opts)

Link to this function

optimize_units(xdiff, opts \\ [])
optimize_units(number(), keyword()) :: %{
  basis: float(),
  rank: integer(),
  val: number()
}

Link to this function

range_from(data)
range_from(Enumerable.t()) :: {Number.t(), Number.t()}

Calculate the base-10 rank of a number.

Link to this function

units_for(x_a, x_b, opts \\ [])

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