MAIDR JavaScript API
    Preparing search index...

    Function timeReader

    • Builds the reader for the values of a time scale, as Nivo normalises them.

      Parameters

      • scale: TimeScaleSpec

        The scale prop (xScale or yScale)

      Returns (value: unknown) => number | undefined

      A function answering a value's timestamp, or undefined for a value Nivo could not place either