MAIDR JavaScript API
    Preparing search index...
    • One row per distribution of a boxen drawn as stacked <Bar>s, naming its boxes: the rectangle each segment <Bar> carrying className draws at the distribution's place in the chart's data.

      Recharts wraps each of a <Bar>'s rectangles in a group of its own, one per row of the data, so :nth-child names a distribution's rectangle in every segment at once. The segments come in the order the <Bar>s are declared, which is the order they are stacked from the base: lowest value first, whichever way the axis runs. A segment of no height draws no rectangle, and is not one of the boxes. Measured on Recharts 3.8.1.

      Parameters

      • className: string

        The class name every segment <Bar> carries

      • places: readonly number[]

        Each distribution's place in the chart's data, from 0

      • OptionalchartId: string

        When set, scopes the selectors to the chart's article

      • OptionalpanelScope: string

        When set, additionally scopes them to one panel

      Returns string[][]

      One row per distribution, of the one selector naming its boxes