MAIDR Documentation - v4.4.0
    Preparing search index...
    • Maps a pixel coordinate back to the value the scale drew there.

      A temporal scale inverts to a Date and comes back as epoch milliseconds, for the reason given on isTemporal. A band scale comes back as its category.

      Parameters

      • scale: PlotScale | undefined

        The scale that positioned the mark.

      • pixel: number

        The pixel coordinate read off the element.

      Returns string | number | null

      The domain value, or null when the scale cannot invert it.