npm recharts 3.10.0
v3.10.0

one day ago

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/

XAxis auto height

XAxis now supports height="auto" prop, similar to YAxis width="auto".

  • feat(XAxis): support height="auto" to size the axis to its tick labels by @kimlj in #7570

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

Full Changelog: v3.9.2...v3.10.0

Don't miss a new recharts release

NewReleases is sending notifications on new releases.