Releases: recharts/recharts
v2.9.1
Bug fixes following 2.9.0
Fix
TypeScript
: fix breaking change inActiveShape
types - fixes #3911 - thanks @andrewangelleCartesianGrid
: fix breaking change where you could no longer renderCartesianGrid
without a y-axis - fixes #3907 - thanks @akamfoadLine
: fix infinite loop whenstrokeDasharray
is'0'
onLine
- fixes #3899 (and maybe others)
Full Changelog: v2.9.0...v2.9.1
v2.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 #3756CartesianGrid
: addsyncWithticks
,horizonalValues
, andverticalValues
props to allow more grid line customization by @morozovkirill in #3746 solves #2153CartesianAxis
: Improve interval option 'equidistantPreserveStart' by @nikolasrieble in #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 #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 (edit: this was already fixed)
- 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
v2.8.0
What's Changed
Minor changes - mostly focused on resolving errors from #3615
Feat
Pie
: default tabIndex and accept it as prop by @akamfoad in #3700Sankey
: add prop to control sankey sorting by @daformat in #3690- [a11y]
Brush
: Add basic keyboard accessibility support for the Brush component by @julianna-langston in #3633 RadialBarChart
: support className prop by @victorgare in #3654
Fix
- defaultProps errros on function components in newer versions of react - fixes #3615
- TS: Add value type to legend Formatter event by @daryl-sf in #3668
- Switch useLayoutEffect to useEffect in Rectangle for SSR by @sieroaoj in #3657
Refactor
- refactor function components to use default params, revert Tooltip to class based component - resolves console errors about defaultProps
Docs
- Some storybook example additions/changes
New Contributors
- @victorgare made their first contribution in #3654
- @gcallaghan-nd made their first contribution in #3662
- @sieroaoj made their first contribution in #3657
- @daryl-sf made their first contribution in #3668
- @daformat made their first contribution in #3690
Full Changelog: v2.7.2...v2.8.0
v2.7.3
v2.7.2
What's Changed
Fix
- Allow
accessibilityLayer
when there is no tooltip (fixes undefined access bug) by @julianna-langston in #3627 - Fix regression when
null
is passed into Linedot
(fixes undefined access bug althoughnull
is not a supported type fordot
) by @ckifer in #3637
Other
- Few minor storybook changes and dev chore items
Full Changelog: v2.7.1...v2.7.2
v2.7.1
What's Changed
Fix
- Move @storybook/addon-storysource to dev dependencies by @DmitryMarkov in #3623
- Moves dev dependency to correct location to prevent bundle size increase, etc.
- Fix defaults for r and strokeWidth when they aren't provided by the user by @ckifer in #3624
- Bug where if only
clipDot
is provided withindot
of Area and Line then dots disappear andNaN
is errors appear in the DOM
- Bug where if only
New Contributors
- @DmitryMarkov made their first contribution in #3623
Full Changelog: v2.7.0...v2.7.1
v2.7.0
What's Changed
Storybook updates, a few new features, bug fixes.
Note: This release may cause more reports of this defaultProps warning - we are aware of this and trying to come up with a feasible solution.
Feat
- Allow adding initial dimensions to ResponsiveContainer by @akamfoad in #3596
- Extend clip path configuration with
clipDot
prop by @tylerben @ckifer in #3602 - Support "bumpX" and "bumpY" curve types by @jacknevitt in #3617
Fix
- Account for
angle
prop on XAxis visibility calculation by @bernardobelchior in #3576 - Propagate className to CartesianAxis by @mitrotasios in #3592
- Add SVGProps to PieLabel type by @timbonicus in #3594
- Export default tooltip and legend content components by @oschwede in #3604
- Fix error bars not working in stacked bar charts by @ckifer in #3612
- Remove role="img" attribute from bar to prevent accessibility issues by using incorrect role by @rhuangabrielsantos in #3614
Docs
- lots of storybook changes - go check it out!
Refactor
- refactor:
Dot
to function component by @akamfoad in #3478 - refactor:
Polygon
to function component by @akamfoad in #3479 - refactor:
Reactangle
to function component by @akamfoad in #3480 - refactor:
Sector
to function component by @akamfoad in #3481 - refactor:
Trapezoid
to function component by @akamfoad in #3482 - refactor: change
Symbols
to functional component by @Yilun-Sun in #3485 - refactor:
DefaultTooltipContent
to be functional component by @akamfoad in #3618
New Contributors
- @CoffeeGeek101 made their first contribution in #3561
- @bernardobelchior made their first contribution in #3576
- @mitrotasios made their first contribution in #3592
- @timbonicus made their first contribution in #3594
- @oschwede made their first contribution in #3604
- @rhuangabrielsantos made their first contribution in #3614
- @jacknevitt made their first contribution in #3617
Full Changelog: v2.6.2...v2.7.0
v2.7.0-alpha.0
Create alpha release to test some of the recent refactorings to function components. Generate release notes without edits - 2.7 will contain full release notes.
What's Changed
- Storybook: add custom tooltip by @CoffeeGeek101 in #3561
- fix(#3468): fix tick visibility calculation not accounting for angle prop on XAxis by @bernardobelchior in #3576
- docs(storybook): add dot stories by @ckifer in #3584
- docs(storybook): add polygon story by @ckifer in #3586
- fix: propagate className to CartesianAxis by @mitrotasios in #3592
- refactor:
Dot
to function component by @akamfoad in #3478 - refactor:
Polygon
to function component by @akamfoad in #3479 - Storybook: Show code for Area component via StorySource in Examples and via Source in API by @nikolasrieble in #3589
- Add SVGProps to PieLabel type by @timbonicus in #3594
- refactor:
Reactangle
to function component by @akamfoad in #3480 - refactor:
Sector
to function component by @akamfoad in #3481 - docs(storybook): add rectangle docs by @ckifer in #3599
- refactor:
Trapezoid
to function component by @akamfoad in #3482 - add: initial dimension to ResponsiveContainer by @akamfoad in #3596
- docs(storybook): adjust shapes to reflect new pattern, adjust wording by @ckifer in #3601
- Export default tooltip and legend content components by @oschwede in #3604
New Contributors
- @CoffeeGeek101 made their first contribution in #3561
- @bernardobelchior made their first contribution in #3576
- @mitrotasios made their first contribution in #3592
- @timbonicus made their first contribution in #3594
- @oschwede made their first contribution in #3604
Full Changelog: v2.6.2...v2.7.0-alpha.0