MAIDR Documentation - v4.4.0
    Preparing search index...
    • One selector per bar, naming the marks in the order the payload lists them.

      The default bar selector matches every .recharts-bar-rectangle, which the model resolves in document order -- and Recharts renders its rectangles in data order whichever way the axis runs. A layer read from the far end therefore cannot use it: point 0 would outline the bar at the other end (#1017).

      Recharts stamps nothing per point and the schema is built before the chart has rendered, so there is no attribute to name; position is what there is. The bars are the only children of their own <g class="recharts-layer"> -- measured on Recharts 3.8.1 -- so :nth-child counts exactly them.

      The list this returns runs descending in :nth-child, because payload position 0 is the last bar drawn. That is the direction #1004 requires: Svg.selectElement inserts its clone next to the match while the list is still being resolved, so an ascending positional list returns the first element over and over.

      Parameters

      • base: string

        The default selector for this chart type, scope and all

      • pointCount: number

        How many bars the series drew

      Returns string[] | null

      One selector per point in the payload's order, or null when the base is not one this can count -- the caller then keeps it whole rather than emitting a list that names nothing