Where the chart's <Pie> starts and ends, when it draws one.
<Pie startAngle={90} endAngle={-270}> is how Recharts states it, and it
lives in the chart subtree MaidrRecharts renders but never used to
read -- so every pie was placed from the top going clockwise, which is
neither where Recharts' default starts (3 o'clock) nor the way it goes
(counterclockwise). Both angles are returned as written, in Recharts' own
terms, for the converter to turn into the grammar's.
Depth-first for the same reason the other walks are, and stops at the
first <Pie>. A tree with none answers undefined, and so does a <Pie>
that sets neither angle: Recharts' defaults then apply, which the converter
knows. An angle that is not a number is left out rather than guessed.
Where the chart's
<Pie>starts and ends, when it draws one.<Pie startAngle={90} endAngle={-270}>is how Recharts states it, and it lives in the chart subtree MaidrRecharts renders but never used to read -- so every pie was placed from the top going clockwise, which is neither where Recharts' default starts (3 o'clock) nor the way it goes (counterclockwise). Both angles are returned as written, in Recharts' own terms, for the converter to turn into the grammar's.Depth-first for the same reason the other walks are, and stops at the first
<Pie>. A tree with none answersundefined, and so does a<Pie>that sets neither angle: Recharts' defaults then apply, which the converter knows. An angle that is not a number is left out rather than guessed.