fix(deps): update dependency recharts to v3 #2452
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.1.16->3.3.0Release Notes
recharts/recharts (recharts)
v3.3.0Compare Source
v3.2.1Compare Source
What's Changed
Fix
X/YAxis, etc.: reduce re-renders to fix blinking line in Zoom & Highlight example by @PavelVanecek in #6315Bar: Remove redundantRectangleimport, fixes tsup builds with recharts in them by @guscost in #6305Pie: fix PieLabel types by @PavelVanecek in #6313Brush: fix index off by one error whenmarginis 0 by @ckifer in #6323New Contributors
Full Changelog: recharts/recharts@v3.2.0...v3.2.1
v3.2.0Compare Source
What's Changed
Quite a bit of 3.0 bug fixes in this release along with two new hooks. Thanks to all who've been reporting issues!
Feat
Pie: support string values in PieouterRadiuscallbacks by @rephaelberkooz in #6191PolarGrid: addfillcolor support to by @mindtraveller in #6287Hooks
useXAxisDomainanduseYAxisDomainhooks by @PavelVanecek in #6201useMarginhook by @PavelVanecek in #6224Fix
Bar: fix unnecessary line breaks in Bar labels by @eino in #6214Bar: improveBarperformance whenactiveBaris turned off by @PavelVanecek in #6290Stacked Bar/Area: fix stacked charts with duplicate categorical data by @PavelVanecek in #6194Scatter: fix exception when Scatter data has non-stringtypeproperty by @PavelVanecek in #6248X/YAxis: fix blinking when changing props by @PavelVanecek in #6262PolarAngleAxis/Radar: fix polar angle axis ticks text positions by @mindtraveller in #6276Label: allow rendering Labels as nested children inXAxis,YAxisand Reference elements by @PavelVanecek in #6219LabelList: fix issue with LabelList not rendering inPiecharts by @PavelVanecek in #6246Text: fix exception whenText's children is empty and scaleToFit=true by @PavelVanecek in #6282Tooltip: bound Tooltip coordinates to the chart container in synchronized charts by @shreedharbhat98 in #6263Brush:allow brush travelers to be controlled by keys after mouse interaction by @ckifer in #6285useActiveTooltipDataPoints: fix infinite rendering loop by @PavelVanecek in #6247Chore
New Contributors (thanks everyone!)
Full Changelog: recharts/recharts@v3.1.2...v3.1.3
v3.1.2Compare Source
What's Changed
Fix
Label/Polar Charts:Labelviewbox should now be present in polar charts and address #6030 by @PavelVanecek in #6180Full Changelog: recharts/recharts@v3.1.1...v3.1.2
v3.1.1Compare Source
What's Changed
Fix
General: Don't apply duplicate IDs in the DOM by @PavelVanecek in #6111Stacked Area/Bar: give all graphical items their own unique identifier and use that to select stacked data. Fixes issue where stacked charts could not be created from the graphical itemdataprop #6073 by @PavelVanecekStacked Area/Bar: exclude stacked axis domain when not relevant for axis by @rinkstiekema in #6162 fixes issue where numeric stacked charts would not render correctlyArea Chart: ranged area chart - show active dot on both points instead of just the top one by @sroy8091 in #6116 fixes #6080Polar Charts/Label: fixLabelin polar charts by @PavelVanecek in #6126Scatter/ErrorBar: choose implicit Scatter ErrorBar direction based on chart layout (to be the same as 2.x) by @PavelVanecek in #6159X/YAxis/Reference Components: allow axis values and reference items to render when there is no data but there is a domain/explicit ticks set by @ethphan in #6161X/YAxis: pass axis padding info to custom tick components by @shreedharbhat98 in #6163Chore / Testing
strictNullChecksAnimateintoJavascriptAnimateandCSSTransitionAnimateby @PavelVanecek in #6175New Contributors
Full Changelog: recharts/recharts@v3.1.0...v3.1.1
v3.1.0Compare Source
What's Changed
Bug fixes (old and new) and a few new hooks post 3.0 launch!
Feat
More hooks!
useOffsetandusePlotAreahooks by @PavelVanecek in #6057useActiveTooltipDataPointshook by @PavelVanecek in #6067Fix
Legend: After hiding and showing legend elements, keep them in the same order as before by @PavelVanecek in #6026Bar: addpayloadas a valid property onBarRectangleItemby @ckifer in #6029Accessibility: Removerole=applicationfrom recharts wrapper (this was removed in 2.x for accessibility reasons) by @PavelVanecek in #6060ResponsiveContainer: Addoverflow: visiblezero-size wrapper so that ResponsiveContainer can shrink by @PavelVanecek in #6068X/YAxis: FixtickCountandallowDecimalsif axis domain does not include the keyword 'auto' by @PavelVanecek in #6070Tooltip: Fix active tooltip and dots when there are multiple graphical items each with their own data by @PavelVanecek in #6074Docs
Chore
New Contributors
Full Changelog: recharts/recharts@v3.0.2...v3.1.0
v3.0.2Compare Source
What's Changed
Please skip 3.0.1 and go straight to 3.0.2 - #6022. In
React.StrictModecharts in 3.0.1 were not rendering at all. This revert should resolve that.revert: revert preserve legend order by @ckifer in #6023Full Changelog: recharts/recharts@v3.0.1...v3.0.2
v3.0.1Compare Source
What's Changed
Lots of fixes from the 3.0 release - thanks for the reports!
Edit: broke something #6022
Fix
Label: fix an issue which causedlabelRefto get passed to custom DOM elements which logged an error/warning by @saurabhraj123 in #6008Pie->Label: fix issue where pie labels were not rendering correctly when specified as a child ofPieby @PavelVanecek in #5987Legend: apply legenditemSorterfor customcontentas well as default content by @PavelVanecek in #6012*Legend: keep legend items in the same order when they are hidden and shown by @PavelVanecek in #6017Bar->Brush: fix undefined access error when usingBrushwith stacked bar charts by @PavelVanecek in #6009X/YAxis: fixDecimalErrorwhen creating vertical oriented charts with a single datapoint by @ckifer in #6016X/Y/PolarAngle/PolarRadius Axis:tickFormatteris no longer called with data indexes before the actual data by @PavelVanecek in #6019Full Changelog: recharts/recharts@v3.0.0...v3.0.1
v3.0.0Compare Source
🚀 Recharts 3 is here!
Huge shoutout to @PavelVanecek who wrote 95% of the code for this major version release. We re-wrote recharts state management, wrote some 3500 unit tests, fixed a bunch of bugs, and added a few well-requested features.
The intent with 3.0 is that it is now a better/easier place for the community to contribute to. Looking forward to what the future of recharts looks like in 3.x and beyond!
More details and the 3.0 migration guide
BREAKING CHANGES
Please see https://github.com/recharts/recharts/wiki/3.0-migration-guide#breaking-code-changes
tldr;
CategoricalChartState(which was access to recharts internal state) no longer exists in event handlers orCustomized, etc.<Customized />no longer receives recharts state/propsNew Features
accessibilityLayeris now on on all polar and cartesian charts by default. Tab into the chart and use the arrow keys to navigate.axisIdYAxis: auto width calculation for YAxes - setwidth="auto"X/YAxis: Addsymlogd3 scale typeBug fixes and improvements
This release fixes some long standing issues in recharts, the easiest way to determine all of them is to take a look at the recharts 3.0 project board
Pie: no more border around pie sectors on click, etc.CartesianGrid: background now renders below the grid lines instead of aboveOur 3.0 storybook has a lot of updated examples!
v2.15.4Compare Source
What's Changed
Last 2.x patch - releasing since the
@babel/runtimevulnerability is showing up in some security scans. Hoping to release 3.0 on 6/22 🚀Fix
X/YAxis: fix issue where recharts class names did not get passed to custom tick components by @MyungAe in #5840Bar: allowminPointSizefunction to receive null and undefined values by @eino in #5947TypeScript: fix issue which caused build errors whenallowSyntheticDefaultImports: falseby @tfaller in #5810Security
New Contributors
Full Changelog: recharts/recharts@v2.15.3...v2.15.4
v2.15.3Compare Source
Last patch release before 3.0 🚀
What's Changed
Fix
XAxis: fix padding calculation forpadding="gap"andpadding="no-gap"when XAxis is type number by @jackfletch in #5759Full Changelog: recharts/recharts@v2.15.2...v2.15.3
v2.15.2Compare Source
What's Changed
Few bugfixes and bug fix backports for 2.x
Fix
Bar/Rectangle: add index back to Bar Rectangle key to prevent duplicate key issues by @ckifer in #5561Dot: re-includepointsobject in dotProps by @brodriguezmilla in #5657Tooltip: addSVGPropsto Tooltip payload type to account for svg properties such as opacity passed by the user by @ally1002 in #5712Tooltip/Bar: fixactiveBarprop not working when tooltipshared={false}by @nizans in #5718General: allowdata-*props to be spread on svg elements and not be filtered out by @prtmwrkr in #5666New Contributors
Full Changelog: recharts/recharts@v2.15.1...v2.15.2
v2.15.1Compare Source
What's Changed
Quick patch release, nothing crazy going on here.
In the meantime please help us test recharts 3.0 alpha #5445 🚀
Fix
Legend - Typescript: adddataKeytype to legend formatter props by @lucasassisrosa in #5511. Fixes #5508Chore
react-smoothversion is up to date in package.json for R19 support by @acomanescu in #5422New Contributors
Full Changelog: recharts/recharts@v2.15.0...v2.15.1
v2.15.0Compare Source
What's Changed
Final 2.x React 19 support
!!! You still need to override your
react-isversion to matchreact/react-domfor React 19 to work with recharts !!! - see thread here - this limitation will be alleviated in recharts 3.0Feat
Add React 19 to peerDependencies - closes #4558
Fix
Bar: fix Bar mouse event types regression - closes #5308ReactTexttypeFull Changelog: recharts/recharts@v2.14.1...v2.15.0
v2.14.1Compare Source
What's Changed
Fix
X/YAxis: omit unused/accidentally added (in 2.13)refprop from axis types in #5295. Resolves #5294Full Changelog: recharts/recharts@v2.14.0...v2.14.1
v2.14.0Compare Source
What's Changed
Small release to get new top level chart events out there. Still working on 3.x, a little slower right now because of the holidays.
Feat
Area/Line/Bar/Scatter/Pie/Radar/RadialBar/FunnelChart components: add support for top levelonContextMenuandonDoubleClickevents #5254 by @abarreau in #5255Fix
Typescript fixes
LabelList:dataKeyprop for LabelList should accept any object by @ckifer in #5252Pie:PieSectorDataItem.payloadshould be an object rather than an array by @BTOdell in #5263New Contributors
Full Changelog: recharts/recharts@v2.13.3...v2.14.0
v2.13.3Compare Source
What's Changed
Small change which may (or may not) help when using ResponsiveContainer with React 19. Worth a shot.
!!
react-isoverride is still needed for React 19 to work correctly with recharts !! - see #4558Fix
7a67b41ResponsiveContainer- swapisElementfromreact-iswithReact.isValidElementFull Changelog: recharts/recharts@v2.13.2...v2.13.3
v2.13.2Compare Source
What's Changed
refprops back.Fix
Full Changelog: recharts/recharts@v2.13.1...v2.13.2
v2.13.1Compare Source
What's Changed
Fix
ResponsiveContainer: fix internal bug from 2.13 which causes responsive container to render incorrectly by @ckifer in #5174Bar:radiusprop type fixed to match expected type by @lifeofpavs in #5116New Contributors
Full Changelog: recharts/recharts@v2.13.0...v2.13.1
v2.13.0Compare Source
What's Changed
React 19 compat, fix annoying defaultProps warnings, bug fixes
Feat
React 19 compatibility - see #4558
peerDependenciesstill cannot be updated until 3.0 release, but for now R19 beta/RC releases can be used with Recharts under the following conditions:react-isversion matches yourreactandreact-domversions: use your package manager'soverridefunctionality to match yourreact-isversion to your react version or else recharts elements will not show - see #4558 (comment)CartesianGrid: add support forryprop to curve the corner of the grid background - progress on #3062Fix
General: FixdefaultPropsusage in function components, removes warnings on all affected components - see #3615ReferenceLine: fix accidental removal of type annotation by @zackliscio in #4610Line/Area: fix issue whereclipDotwould not take effect if it was the only property indotProps@ckifer in #4674Tooltip: fix issue where tooltip would not show in certain cases ifdatawas set on the graphical item by @HHongSeungWoo in #4718X/YAxis: use correct, adapted event types by @ckifer in #4967Tooltip:defaultIndexout of range error by @ckifer in #5054Pie: fix duplicate key error @ckifer in #4958Text: fix duplicate key error by @ckifer in #5088 closes #5072Typescript
New Contributors
Full Changelog: recharts/recharts@v2.12.7...v2.13.0
v2.12.7Compare Source
Whats changed
Fix
Area: re-add calculated areapointsto theareaDotcallback props when it is a function. This was accidentally removed in v2.3. Fixes #4480Brush: guard against undefined property access error when anariaLabelis not specified. Follow up from #2093 (comment)Full Changelog: recharts/recharts@v2.12.6...v2.12.7
v2.12.6Compare Source
What's Changed
Fix
Tooltip: fix glitch where Tooltip always rendered in the top left even if animation was disabled by @HHongSeungWoo in #4425 fixes #4424Chore
CI/Build fix: Added proper.jssuffixes to main module and jsnext:main paths in package.json by @dobosalparbc in #4431 fixes #2858Full Changelog: recharts/recharts@v2.12.5...v2.12.6
v2.12.5Compare Source
Small fixes while working on v3 continued...
What's Changed
Feat
BarChart: support percentage (of chart) forbarSize. Helps set size of bar when there are few datapoints Fixes #3640 by @graup in #4407Fix
Address #4382
A recent release of
@types/reactbroke some builds because they removed certain (unused) events from common event handler attributes.rechartswas unknowingly enumerating keys ofSVGPropsin theLayercomponent with the old types and causing a type error ontscwithskipLibCheck: falsetypescript - Layer: useSVGAttributesinstead ofSVGPropsin forwardRef components by @ckifer in #4413typescript - Pie: fix Pierefwhich was cast toHTMLElementwhen therefis actually referring toSVGGElement. This gave false information to whoever is usingrefon thePiecomponentFull Changelog: recharts/recharts@v2.12.4...v2.12.5
v2.12.4Compare Source
What's Changed
Small fixes while working on v3 continued...
Fix
Accessibility: remove role attribute from recharts-wrapper which caused an accessibility violation with > 1 chart on the same page by @julianna-langston in #4386, fixes #4384X/YAxis: fix incorrect padding calculation when there is 1 datapoint or less by @graup in #4314 closes #4313classNamefixes - helps slowly address #2169:Tooltip: allow customclassNameoncursorby @108yen in #4306RadarChart/RadialBarChart: allow customclassNameonPolarRadiusAxis,PolarAngleAxis, andRadardot by @108yen in #4335Pie: allow customclassNameonlabelandlabelLineofPieby @108yen in #4381Full Changelog: recharts/recharts@v2.12.3...v2.12.4
v2.12.3Compare Source
Some more small changes/fixes while working on 3.x
What's Changed
Fix
Legend: fix issue where Legend was not taken into account when scaling the chart container by @zhonglin94 in #4272 closes #4246Area: fixed a bug where className was not assigned to areaDot by @108yen in #4294 closes #4290RadialBar: address regression where radial bar and its background were off from eachother because of rounding by @ckifer in #4295 closes #4264ErrorBar: do not countnullas 0 in error bar domain by @rinkstiekema in #4297New Contributors
Full Changelog: recharts/recharts@v2.12.2...v2.12.3
v2.12.2Compare Source
What's Changed
Some more small fixes while working on 3.x
Fix
Pie: pie label keys are not unique when data is 0 by @ckifer in #4224ResponsiveContainer: Remove incorrectly timed console.warn call, only log when using soon-to-be deprecated feature by @HHongSeungWoo in #4249Full Changelog: recharts/recharts@v2.12.1...v2.12.2
v2.12.1Compare Source
What's Changed
Unintentional regression broke panoramic/compact Brush in 2.11.0 and 2.12.0, backport the fix to 2.x as we work on 3.x
Fix
Full Changelog: recharts/recharts@v2.12.0...v2.12.1
v2.12.0Compare Source
What's Changed
Bug fixes and a few small new features.
Releasing 2.12.0 to create a "clean slate" as contributors are discussing next moves for recharts.
We will try to focus on upgrades, architectural changes, and long-pending breaking changes so we can release a recharts v3. This will not be a large major version, or one hard to upgrade to, but rather a major version bump to prevent us from breaking people with library upgrades, large refactors, etc. Feature parity should hold. Thanks!
Features
Bar: Accept a callback function forminPointSizeso it can be determined by data by @ckifer in #4099 closes #2819Accessibility: Enable screen reader support with accessibilityLayer and default tooltip by @julianna-langston in #4077Fix
Bar:activeBarshould not be true by default, fixes a breaking change from 2.9.0 by @ckifer in #4139 - fixes #4103 and #4101Scatter: fix non-unique key errors by @imagineLife in #4087 - fixes #4151 and #4060Pie: fix non-unique key errors by @imagineLife in #4106Tooltip: fix bug that caused throttled tooltip to stay active when moving mouse quickly by @HHongSeungWoo in #4100 fixes #4093Chore
translateStyle, remove prop-types as a peerDepStorybook
New Contributors
Full Changelog: recharts/recharts@v2.11...v2.12.0
v2.11.0Compare Source
v2.10.4Compare Source
What's Changed
Fix some older bugs annoying bugs, TS typings, update to the storybook theme, and more
Fix
ResponsiveContainer: fixref.current.currentwithout breaking users using current implementation by @HHongSeungWoo in #4008 - closes #3718Brush: Allow Brush to be controlled with start and end index via state by @ckifer in #4034 - closes #2404Legend: TypeScript - Add the dataKey type to legend props by @HHongSeungWoo in #4035 - closes #2909Pie: TypeScript - addedpayloadtoPieSectorDataItemtype by @PavelVanecek in #4030Pie: unique sector keys fix by @imagineLife in #4009 closes #3273RadialBar: allow className to be passed to Radial Bar background by @ckifer in #4027 - closes #4011Storybook
New Contributors
Full Changelog: recharts/recharts@v2.10.3...v2.10.4
v2.10.3Compare Source
What's Changed
keybug(s) by @imagineLife in #4006 - closes #4004New Contributors
Full Changelog: recharts/recharts@v2.10.2...v2.10.3
v2.10.2Compare Source
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 whendataprop is on individual cartesian component by @HHongSeungWoo in #3988LabelList- TypeScript: LabelList offset prop issue by @ckifer in #3999Accessibility
Brush: set default aria-label and allow value override by @enriquetamames-cpi in #3950Refactor / Cleanup
New Contributors
Full Changelog: recharts/recharts@v2.10.1...v2.10.2
v2.10.1: Patch: Do not include types from test folderCompare Source
Fixes #3978
Full Changelog: recharts/recharts@v2.10...v2.10.1
v2.10.0Compare Source
v2.9.3Compare Source
Fix
Brush: Fix an issue where after 2.9Brushdoes not correctly slice data when usingLinecomponents - fixes #3929 - thank you @HHongSeungWoov2.9.2Compare Source
Fix another TS issue from 2.9.
Fix
Line/ActiveDot: Fix breaking type change for theonClickfunction ofactiveDotonLine- this resolves #3922 - thank you @andrewangelle for the quick turnaroundv2.9.1Compare Source
Bug fixes following 2.9.0
Fix
TypeScript: fix breaking change inActiveShapetypes - fixes #3911 - thanks @andrewangelleCartesianGrid: fix breaking change where you could no longer renderCartesianGridwithout a y-axis - fixes #3907 - thanks @akamfoadLine: fix infinite loop whenstrokeDasharrayis'0'onLine- fixes #3899 (and maybe others)Full Changelog: recharts/recharts@v2.9.0...v2.9.1
v2.9.0Compare Source
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, andverticalValuesprops 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 #3774Fix
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 [#3818](https://redirect.github.com/recharts/recharts/puConfiguration
📅 Schedule: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.