What's Changed
Added z-index support across most recharts surfaces + a few other features, lots of fixes, and some doc updates 🚀
Feat
- Z Index! - You can now add a z index to many chart components to order the position of recharts elements as you wish, mimicking CSS z-index. Big shout out to @PavelVanecek in #6479
- See the guide page - (coming soon)
Line: addshapeproperty to allow for custom shape implementations by @tarik02 in #6512Sankey: support for left-aligned Sankey nodes via thealignprop by @dbnl-renaud in #6568Sankey: support for top-aligned Sankey nodes via theverticalAlignprop by @dbnl-kat #6576Label: allow overwriting thetextAnchorprop by @PavelVanecek in #6547
Fix
Stacked Bar / Brush: fix bug in stacked bar charts with a brush where the brush would remove elements from the wrong side of the chart by @37108 in #6481Area: fix regression in Area event handlers where the events were not firing correctly by @PavelVanecek in #6507Funnel: fix Funnel margin calculations by @PavelVanecek in #6453Funnel: fix label position issues from previous release by @PavelVanecek in #6473Label/Text: correctLabelandTexttypes to only what they can actually render by @PavelVanecek in #6467Misc: inline a few es-toolkit functions that were causing build errors by @daiboom in #6543Misc: remove circular dependency import that had potential to cause runtime errors by @ckifer in #6581
Chore
- Finished adding strict null checks and enabled
strictNullsin TSConfig for good 🚀- by @PavelVanecek in #6497
Docs
Lots of changes in recharts.github.io
- Switch code editor to codemirror by @PavelVanecek in #6531
- Added/removed missing/stale properties where applicable from storybook and website
- Few layout/visual changes and fixes on the website
- Much more
New Contributors
- @37108 made their first contribution in #6481
- @tarik02 made their first contribution in #6512
- @dbnl-renaud made their first contribution in #6568
- @coderabbitai[bot] made their first contribution in #6538
- @dbnl-kat made their first contribution in #6576
Full Changelog: v3.3.0...v3.4.0