v3.4.0
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 https://github.com/recharts/recharts/pull/6479
- See the guide page - https://recharts.github.io/en-US/guide/zIndex/
Line: addshapeproperty to allow for custom shape implementations by @tarik02 in https://github.com/recharts/recharts/pull/6512Stacked Bar: improved stacked bar animationsSankey: support for left-aligned Sankey nodes via thealignprop by @dbnl-renaud in https://github.com/recharts/recharts/pull/6568Sankey: support for top-aligned Sankey nodes via theverticalAlignprop by @dbnl-kat https://github.com/recharts/recharts/pull/6576Label: allow overwriting thetextAnchorprop by @PavelVanecek in https://github.com/recharts/recharts/pull/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 https://github.com/recharts/recharts/pull/6481Area: fix regression in Area event handlers where the events were not firing correctly by @PavelVanecek in https://github.com/recharts/recharts/pull/6507Funnel: fix Funnel margin calculations by @PavelVanecek in https://github.com/recharts/recharts/pull/6453Funnel: fix label position issues from previous release by @PavelVanecek in https://github.com/recharts/recharts/pull/6473Label/Text: correctLabelandTexttypes to only what they can actually render by @PavelVanecek in https://github.com/recharts/recharts/pull/6467Misc: inline a few es-toolkit functions that were causing build errors by @daiboom in https://github.com/recharts/recharts/pull/6543Misc: remove circular dependency import that had potential to cause runtime errors by @ckifer in https://github.com/recharts/recharts/pull/6581
Chore
- Finished adding strict null checks and enabled
strictNullsin TSConfig for good ๐- by @PavelVanecek in https://github.com/recharts/recharts/pull/6497
Docs
Lots of changes in recharts.github.io
- Switch code editor to codemirror by @PavelVanecek in https://github.com/recharts/recharts/pull/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 https://github.com/recharts/recharts/pull/6481
- @tarik02 made their first contribution in https://github.com/recharts/recharts/pull/6512
- @dbnl-renaud made their first contribution in https://github.com/recharts/recharts/pull/6568
- @coderabbitai[bot] made their first contribution in https://github.com/recharts/recharts/pull/6538
- @dbnl-kat made their first contribution in https://github.com/recharts/recharts/pull/6576
Full Changelog: https://github.com/recharts/recharts/compare/v3.3.0...v3.4.0