What's Changed
Quite a lot this minor release! We sent out a cry for help and many answered - thank you so much for that 🙌🏼
This release aims at internal maintainability, long lingering bugs, and needed improvements. Highlights include equidistant tick improvements, an active bar feature, and an ~85k/~9kb (gzipped) bundle size reduction 🚀
Feat
Bar
: Implement activeBar for Bar component by @andrewangelle in #3756CartesianGrid
: changes by @morozovkirill in #3746CartesianAxis
: Improve interval option 'equidistantPreserveStart' by @nikolasrieble in #3768CartesianAxis
: Throw an invariant when axisIds do not match between chart and axis components by @ckifer in https://github.com/recharts/rechartsBrush
: add onDragEnd event to Brush component by @simkesd in #3774
Fix
- Active Shape improvements
Funnel
: activeShape should work with Tooltip by @andrewangelle in #3772Scatter
: activeShape should work with Tooltip by @andrewangelle in #3839Pie
: activeShape should work with Tooltip by @andrewangelle in #3818RadialBar
: activeShape should work with Tooltip by @andrewangelle in #3803
CartesianGrid
: Remove offset attribute from lines by @branberry in #3854 solves #3810ResponsiveContainer
: style prop is now passed down correctly by @d-gottlieb in #3726Legend
: "Functions are not valid as a React child" error in when a function is passed as the payload #3749 by @chris-mcdonald-dev in #3750Tooltip
: Fix tooltip position when container uses transform scale by @MateuszTrN in #3748Tooltip
: Tooltip does not include data from all charts when a separate dataset is passed to chart prop data and specified on Line/Area/etc prop data by @andrewangelle in #3733 fixes #3669
Refactor
Impossible to mention all of the great refactoring done this release thanks to @PavelVanecek (33 PRs in one month!!) and others! Notable improvements include (non-breaking) type safety enhancements and source code file size reductions, and unit test improvements that will help reduce regressions.
Chore
- Upgrade react-smooth to 2.0.5 - potentially fixes #1135
- Add performance testing tool by @PavelVanecek in #3829
- remove reduceCSSCalc by @HHongSeungWoo in #3820
Storybook
- Add storybook-addon-performance by @PavelVanecek in #3826
- many storybook improvements and fixes
🚀 New Contributors (!!) 🚀
- @d-gottlieb made their first contribution in #3726
- @andrewangelle made their first contribution in #3733
- @wanisramdani made their first contribution in #3751
- @MateuszTrN made their first contribution in #3748
- @chris-mcdonald-dev made their first contribution in #3750
- @PavelVanecek made their first contribution in #3759
- @simkesd made their first contribution in #3774
- @samtmorgan made their first contribution in #3778
- @Shashangbhagat made their first contribution in #3786
- @morozovkirill made their first contribution in #3746
- @branberry made their first contribution in #3854
- @HHongSeungWoo made their first contribution in #3820
Full Changelog: v2.8.0...v2.9.0