What's Changed
Legend position
Legend now supports position and offset props, same as Label and LabeList. This replaces the previous align and verticalAlign for a more convenient positioning, and fixes couple visual bugs too. See https://recharts.github.io/en-US/examples/LegendPosition/
- Legend position and offset by @PavelVanecek in #7564
XAxis auto height
XAxis now supports height="auto" prop, similar to YAxis width="auto".
Other features
- feat(Sankey): support accessibilityLayer, title and desc props by @MahinAnowar in #7546
Bugfixes
- fix: clear stale active bar layer state by @pupuking723 in #7547
- fix(Brush): slide snaps back to original position on mouseup when start/endIndex are controlled by @MaksZhukov in #7542
- fix(Tooltip): find the active sector in the angle-axis wrap-around gap by @MahinAnowar in #7550
- fix(Brush): keep controlled startIndex/endIndex on data updates by @momomuchu in #7530
- Fix Legend type by @PavelVanecek in #7560
- fix(Label): pass computed position attributes to custom label content by @MahinAnowar in #7549
- fix(CartesianAxis): skip renderedTicks dispatch when tick values are unchanged by @kimlj in #7565
- fix: prevent getBandSizeOfAxis from collapsing band size due to floating-point tick gaps by @xianjianlf2 in #7556
- fix(Area): connectNulls connects across stacked points where every series is null by @kimlj in #7566
New Contributors
- @MahinAnowar made their first contribution in #7546
- @MaksZhukov made their first contribution in #7542
- @momomuchu made their first contribution in #7530
- @kimlj made their first contribution in #7565
- @xianjianlf2 made their first contribution in #7556
Full Changelog: v3.9.2...v3.10.0