What's Changed
Themes! See the new guide in https://recharts.github.io/en-US/guide/theming/
This is experimental release; please share your feedback and know that the API may still change. However the whole https://recharts.github.io/ website already runs on it and I am quite happy with how it turned out.
New features
- feat(Bar): support data prop directly on Bar, like Line/Area/Scatter by @pratik-desgn in #7599
- [feat] Text textPath plus allow angling polar labels by @PavelVanecek in #7658
Bugfixes
- fix(Pie): make maxRadius actually constrain percentage-based radii by @pratik-desgn in #7594
- fix(Pie): interpolate paddingAngle during animation by @pratik-desgn in #7593
- Added effect in cartesian YAxis to update width to initial size on data change by @Elaskin in #7347
- fix: infinite loop in reduceCSSCalc when a value contains $& by @jcross in #7610
- fix(Brush): honor a selection of the first data point only by @kdelay in #7618
- fix(Sankey): skip links that point back along the current path by @jcross in #7619
- fix(BarStack): expand clip path so bar strokes are not clipped by @ostapondo in #7606
- fix: guard reduceCSSCalc against ReDoS from pathological calc() input by @bunlongheng in #7620
- fix(axis): stop a two-tick axis whose domain crosses zero from overflowing the stack by @Jaybhade in #7622
- fix(Bar): stop stacked minPointSize inflation from overlapping neighboring segments by @pratik-desgn in #7600
- fix(Bar): apply the theme strokeDasharray like the other graphical items by @kdelay in #7638
- fix(Rectangle): keep the rectangle mounted while it animates to zero by @adarshsm in #7596
- fix(Bar): stop spurious re-animation on unrelated re-renders by @StefanCodes17 in #7644
- fix(types): export prop interfaces referenced by public component props by @MahinAnowar in #7642
- Stop hasDuplicate reporting Object.prototype keys as duplicates by @MahinAnowar in #7655
- fix(useElementOffset): prevent measurement feedback loops by @yoan-md in #7671
- fix(Treemap): give nest breadcrumbs a stable key by @MahinAnowar in #7669
Documentation
- docs: fix dead React link in README by @aliabbas-muhammadi in #7648
- docs: fix dead UMD install links in README by @aliabbas-muhammadi in #7653
- Render source code in SSG so that agents can read it straight from the HTML by @PavelVanecek in #7652
- docs(polygon): add description for Polygon component by @Medyooo in #7667
- docs(brush): add descriptions for Brush props by @Medyooo in #7675
- fix: show editor cursor in dark mode by @PavelVanecek in #7673
- [docs] Annotation controls dark theme support by @PavelVanecek in #7682
New Contributors
- @pratik-desgn made their first contribution in #7594
- @Elaskin made their first contribution in #7347
- @jcross made their first contribution in #7610
- @kdelay made their first contribution in #7618
- @ostapondo made their first contribution in #7606
- @bunlongheng made their first contribution in #7620
- @Jaybhade made their first contribution in #7622
- @aliabbas-muhammadi made their first contribution in #7648
- @adarshsm made their first contribution in #7596
- @StefanCodes17 made their first contribution in #7644
- @Medyooo made their first contribution in #7667
- @yoan-md made their first contribution in #7671
Full Changelog: v3.10.1...v3.11.0-canary.0