MAIDR Documentation - v4.4.0
    Preparing search index...
    • Whether the axis carrying the categories is drawn from its far end.

      <XAxis reversed /> is how Recharts states it, and it lives in the chart subtree this component renders but never used to read -- so a chart drawn right to left was announced left to right, with nothing to consult (#1017).

      Which axis carries the categories follows the chart's orientation, exactly as indexAxis decides it for Chart.js (#1016): x normally, y once the bars are turned on their side. Reversing the value axis moves no category.

      The walk is depth-first because an axis is commonly nested -- inside a <ResponsiveContainer>, or behind a fragment -- and stops at the first matching axis. Anything it cannot find or cannot read answers false, so a chart whose axes are built in a way this does not recognise keeps the reading it has today rather than being turned round on a guess.

      Parameters

      • children: ReactNode

        The chart subtree this component was given

      • horizontal: boolean

        Whether the bars are drawn on their side

      Returns boolean

      True when the category axis is reversed