Releases: recharts/recharts
v2.10.3
What's Changed
- Fix non-unique react
key
bug(s) by @imagineLife in #4006 - closes #4004
New Contributors
- @hkmarques made their first contribution in #4002
Full Changelog: v2.10.2...v2.10.3
v2.10.2
What's Changed
Patch some bugs from 2.9 / 2.10
Fix
Tooltip
: Fix tooltip rendering crash when activeItem is undefined by @tran-simon in #3982Cursor
: should no longer show gray background on hover where there was none previously @HHongSeungWoo in #3992Tooltip
: show tooltip whendata
prop is on individual cartesian component by @HHongSeungWoo in #3988LabelList
- TypeScript: LabelList offset prop issue by @ckifer in #3999
Accessibility
Brush
: set default aria-label and allow value override by @enriquetamames-cpi in #3950
Refactor / Cleanup
- Removing some eslint errors for "no array index key" by @imagineLife
New Contributors
- @tran-simon made their first contribution in #3982
- @enriquetamames-cpi made their first contribution in #3950
Full Changelog: v2.10.1...v2.10.2
Patch: Do not include types from test folder
Fixes #3978
Full Changelog: v2.10...v2.10.1
v2.10
What's Changed
Highlights
Both @HHongSeungWoo and @bernardobelchior landed improvements to performance!
- Perf: rendering improvement by @HHongSeungWoo in #3914
- Reduce calls to
getStringSize
when calculating visible ticks (#2589) by @bernardobelchior in #3953
We have made progress on our preparation of the 3.0 version by migrating from jest to vite. For details and motivation, please read the issue linked to the PR. Special thanks to @branberry for pushing on vitest! Thank you.
- Testing: Migrate from jest to vitest by @nikolasrieble in #3890
Fix
- fix(RadarChart): angleAxis type='number' dose not render correctly by @HHongSeungWoo in #3960
- Fix: Respect the user configuration of Tootip - active by @nikolasrieble in #3935
- fix(tooltip): incorrect array slicing by @HHongSeungWoo in #3972
- fix: #3073 by @HHongSeungWoo in #3862
- Fix #2589 by @HHongSeungWoo in #3893
- Fix #2862 by @HHongSeungWoo in #3892
- fix(vitest-snapshots): regen incorrect vitest snaps by @ckifer in #3903
- Fix #172 by @HHongSeungWoo in #3908
- Fix overwritten props for accessibilityLayer by @mrskiro in #3920
- Add
dataKey
prop onCategoricalChartProps
by @charpeni in #3870 - Added scroll offset positions to spoof calculations to fix accessibility issue by @gouravnema in #3879
- Change in the value of CategoricalChartFunc by @HHongSeungWoo in #3894
- Fix ResponsiveContainer by @HHongSeungWoo in #3921
- fix(tooltip): add updateBBox on componentDidMount by @HHongSeungWoo in #3924
- fix: missing index on LabelProps type by @ckifer in #3939
- fix: Line never checks for new totalLength on component update by @ckifer in #3946
- fix(tooltip): Coordinate prop of Tooltip can be null by @HHongSeungWoo in #3948
- Fixed the initial mount re-rendering bug in ResponsiveContainer by @HHongSeungWoo in #3918
- fix(tooltip): getTooltipContent should avoid undefined by @HHongSeungWoo in #3957
- fix: don't allow negative height and width values by @ckifer in #3963
Chore
- Lodash: Import only specific functions by @nikolasrieble in #3902
- _.isArray: Replace with Array.isArray by @nikolasrieble in #3864
- Remove unit test that was comparing new/old reduce-css-calc by @PavelVanecek in #3868
- chore(deps-dev): bump @babel/traverse from 7.22.11 to 7.23.2 by @dependabot in #3869
- Update Typescript version by @HHongSeungWoo in #3881
- Remove duplicate types In Area chart by @HHongSeungWoo in #3882
- Tooltip translate tests by @PavelVanecek in #3872
- Cleanup babel by @HHongSeungWoo in #3905
- Remove unused babel plugin in the demo by @HHongSeungWoo in #3909
- Replace classnames by @HHongSeungWoo in #3910
- Move function getUniqPayload to separate file, add tests by @PavelVanecek in #3878
- Refactoring mouse event by @HHongSeungWoo in #3891
- Refactoring ResponsiveContainer by @HHongSeungWoo in #3885
- Reuse assertNotNull in AccessibilityLayer.spec.tsx by @PavelVanecek in #3916
- Split Tooltip into TooltipBoundingBox by @PavelVanecek in #3951
- Chore: test Global util + include coverage in test command by @imagineLife in #3974
Storybook
- LineChartStories: Replace random data with default pageData by @nikolasrieble in #3860
- Customized stories - 3740 by @Shashangbhagat in #3863
- Add AccessibilityLater button story with a button by @PavelVanecek in #3917
- Storybook: Fix Pie API story by @nikolasrieble in #3943
- Storybook: Fix Pie.mdx by @nikolasrieble in #3944
- Storybook: Cleanup and simplify Tooltip stories by @nikolasrieble in #3952
- Add synchronised tooltip story by @PavelVanecek in #3964
Feat
- feat: Funnel support custom shape prop by @andrewangelle in #3886
New Contributors
- @charpeni made their first contribution in #3870
- @gouravnema made their first contribution in #3879
- @mrskiro made their first contribution in #3920
- @imagineLife made their first contribution in #3974
Full Changelog: v2.9.0...v2.10
v2.9.3
v2.9.2
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