MAIDR Documentation - v4.4.0
    Preparing search index...
    • The pixel intervals a band or point scale assigns to its categories.

      Marks are not always drawn flush to their band — Plot insets rect and cell marks by half a pixel, and a dot sits at the band's midpoint — so matching a pixel to a category by equality fails. Intervals let valueAtPixel ask which band contains a point instead.

      Parameters

      • scale: PlotScale

        A band, point, or ordinal scale.

      Returns { value: string | number; start: number; end: number; center: number }[]

      One entry per domain value, ordered by pixel position.