recharts 2.9.0
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 https://github.com/recharts/recharts/pull/3756CartesianGrid: addsyncWithticks,horizonalValues, andverticalValuesprops to allow more grid line customization by @morozovkirill in https://github.com/recharts/recharts/pull/3746 solves https://github.com/recharts/recharts/issues/2153CartesianAxis: Improve interval option 'equidistantPreserveStart' by @nikolasrieble in https://github.com/recharts/recharts/pull/3768CartesianAxis: Throw an invariant when axisIds do not match between chart and axis components by @ckiferBrush: add onDragEnd event to Brush component by @simkesd in https://github.com/recharts/recharts/pull/3774
Fix
- Active Shape improvements
Funnel: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3772Scatter: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3839Pie: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3818RadialBar: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3803
CartesianGrid: Remove offset attribute from lines by @branberry in https://github.com/recharts/recharts/pull/3854 solves https://github.com/recharts/recharts/issues/3810ResponsiveContainer: style prop is now passed down correctly by @d-gottlieb in https://github.com/recharts/recharts/pull/3726Legend: "Functions are not valid as a React child" error inTooltip: Fix tooltip position when container uses transform scale by @MateuszTrN in https://github.com/recharts/recharts/pull/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 https://github.com/recharts/recharts/pull/3733 fixes https://github.com/recharts/recharts/issues/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 https://github.com/recharts/recharts/issues/1135 (edit: this was already fixed)
- Add performance testing tool by @PavelVanecek in https://github.com/recharts/recharts/pull/3829
- remove reduceCSSCalc by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3820
Storybook
- Add storybook-addon-performance by @PavelVanecek in https://github.com/recharts/recharts/pull/3826
- many storybook improvements and fixes
🚀 New Contributors (!!) 🚀
- @d-gottlieb made their first contribution in https://github.com/recharts/recharts/pull/3726
- @andrewangelle made their first contribution in https://github.com/recharts/recharts/pull/3733
- @wanisramdani made their first contribution in https://github.com/recharts/recharts/pull/3751
- @MateuszTrN made their first contribution in https://github.com/recharts/recharts/pull/3748
- @chris-mcdonald-dev made their first contribution in https://github.com/recharts/recharts/pull/3750
- @PavelVanecek made their first contribution in https://github.com/recharts/recharts/pull/3759
- @simkesd made their first contribution in https://github.com/recharts/recharts/pull/3774
- @samtmorgan made their first contribution in https://github.com/recharts/recharts/pull/3778
- @Shashangbhagat made their first contribution in https://github.com/recharts/recharts/pull/3786
- @morozovkirill made their first contribution in https://github.com/recharts/recharts/pull/3746
- @branberry made their first contribution in https://github.com/recharts/recharts/pull/3854
- @HHongSeungWoo made their first contribution in https://github.com/recharts/recharts/pull/3820
Full Changelog: https://github.com/recharts/recharts/compare/v2.8.0...v2.9.0