Avena Webapp API - v0.0.1
    Preparing search index...

    Function timeAxisTicks

    • Picks round time ticks for the range [start, end] seconds.

      The step is 1, 2 or 5 times a power of ten, chosen so that at most maxTicks ticks fit. Ticks are multiples of the step, so they are anchored at 0 (the newest sample in continuous mode, the trigger in frozen mode) and evenly spaced.

      Parameters

      • start: number

        Range start, seconds.

      • end: number

        Range end, seconds. Swapped with start if smaller.

      • maxTicks: number

        Most ticks wanted, at least 2.

      Returns TimeAxisTicks

      The ticks. Empty values for an empty or non-finite range.