NonLinearTicks

References
public class NonLinearTicks
Represents a series of NonLinearTick markers.

Constructors

NonLinearTicks

#
public NonLinearTicks(params NonLinearTick[] ticks)
ticks (params NonLinearTick[])

Properties

Count

#
public int Count { get; }
Gets the number of ticks.

MaximumTick

#
public long MaximumTick { get; }
Gets the linear tick index of the rightmost non-linear tick.

MaxValue

#
public decimal MaxValue { get; }
Gets the value of the right-most tick.

MinValue

#
public decimal MinValue { get; }
Gets the value of the left-most tick.

Indexers

this[]

#
public NonLinearTick this[int index] { get; }
Gets the tick at the given index.
index (int)

Methods

Map

#
public long Map(decimal value)
Find the linear tick at which a given value is supposed to be placed.
value (decimal)

Map

#
public UiNumber Map(long tick)
Map a linear tick onto a non-linear value.
tick (long)Tick to map.

Next

#
public NonLinearTick Next(decimal value)
Gets the non-linear right to the left of the given value, or the first tick if the specified value is to the right of all ticks.
value (decimal)

Next

#
public NonLinearTick Next(long tick)
Gets the non-linear tick to the right of the given linear tick index, or the first tick if the specified value is to the right of all ticks.
tick (long)

Prev

#
public NonLinearTick Prev(decimal value)
Gets the non-linear tick to the left of the given value, or the first tick if the specified value is to the left of all ticks.
value (decimal)

Prev

#
public NonLinearTick Prev(long tick)
Gets the non-linear tick to the left of the given linear tick index, or the first tick if the specified value is to the left of all ticks.
tick (long)