π· Update dependency recharts to v3 #4075
Merged
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.15.4β3.6.0Release Notes
recharts/recharts (recharts)
v3.6.0Compare Source
What's Changed
3.6 π - check out
BarStackand ranged stacked bars πFeat
BarStack: new componentBarStackby @βPavelVanecek in #β6746radiusBar: enable ranged stacked bars by @βPavelVanecek in #β6722Pie/Typescript: ExportPieSectorShapePropstype forshapefunction by @βramanverse in #β6706XAxis/YAxis: Implement 'equidistantPreserveEnd' interval option for XAxis and YAxis (#β6642) by @βOm-Mishra09 in #β6661Tooltip: AddgraphicalItemIdto tooltip payload object by @βPavelVanecek in #β6765TypeScript: ExportTooltipIndex,BarRectangleItem,TreemapNode,DataKey,AxisIntervalfrom public API by @βCopilot in #β6676Fix
Scatter: fix bug where Tooltip payload data was duplicated or contained unrelated items when using multipleScatterelements in oneScatterChartby @βPavelVanecek in #β6773Label/LabelList:Fix crash whenLabelis passed as content toLabelListby @βHarikrushn9118 in #β6732General: Round numbers before putting them to DOM by @βPavelVanecek in #β6707General: Store refs instead of IDs to unblock shadow DOM usecases by @βPavelVanecek in #β6753Chore
CartesianAxis: DeprecateCartesianAxis@βPavelVanecek in #β6774undefinedchecks for progress towards TSstrictmodeDocs
New Contributors
Full Changelog: recharts/recharts@v3.5.1...v3.6.0
v3.5.1Compare Source
What's Changed
Fix
Pie: add missingSectorindex toPieshapeprop by @βckifer in #β6683Piesimilar toactiveIndexin 2.xPie: prevent cross-Pie highlighting in multi-PiePieCharts with shared dataKeys by @βshreedharbhat98 in #β6678TypeScript/Tooltip: updateactiveLabeltype to be astring | numberby @βckifer in #β6691Accessibility/General: addtabIndex-1 on RechartsZIndexsvg portalgtags to prevent extraneous focusable surfaces by @βckifer in #β6687General: Removed accidental eslint dependency from main dependencies which should remove it from installation with rechartsNew Contributors
Full Changelog: recharts/recharts@v3.5.0...v3.5.1
v3.5.0Compare Source
What's Changed
Mostly fixes and performance improvements this release but check out the deprecation of
Pieactive/inactiveShapein favor of aligning with theshapeprop of other chart elements.Feat
Pie: addshapeto align custom Pie sector shapes to other Recharts components by @βckifer in #β6482activeShapeandinactiveShape. Please use theisActiveprop passed from the callback toshapeto create active Pie sectors.Stacked Charts: implementreverseStackOrderprop in v3 - fixes a regression between recharts 2 and 3 by @βj-shimizu111 in #β6644Typescript/Dot: exportActiveDotPropsandDotItemDotPropstypes by @βsimaks in #β6657Fix
SetTooltipEntrySettingsto break infinite rendering loop by @βPavelVanecek in #β6616Line: fix animation when interrupted with non-data related changes by @βPavelVanecek in #β6641Line/Area: fix active dot appearing outside graph by @βcameronm-orion in #β6612Legend: aLegendwith aportalno longer adjusts the margin of the chart (which left an empty space) by @βckifer in #β6609ErrorBar: remove duplicate key warning when error range has same values by @βbas0N in #β6660PolarAngleAxis: prevent overlapping "0" and "360" ticks by @βPavelVanecek in #β6611Typescript/Area: add specific type toArea.labelinstead ofanyby @βPavelVanecek in #β6621General: disable immutable check in production, removes console warnings by @βtngwoerleij in #β6619Docs
New Contributors (thanks everyone!)
Full Changelog: recharts/recharts@v3.4.1...v3.4.2
v3.4.1Compare Source
What's Changed
Forgot some exports for Z Index in 3.4
DefaultZIndexesandZIndexLayerby @βckifer in #β6599Full Changelog: recharts/recharts@v3.4.0...v3.4.1
v3.4.0Compare Source
v3.3.0Compare Source
What's Changed
Feat
ResponsiveContaineris now built-in to all charts by @βPavelVanecek in #β6388responsiveprop to any chart along with a height and width as if you were usingResponsiveContainer. One less component to wrap things with.ResponsiveContainerwill continue to work for the life of 3.xFix
YAxis: Only use the YAxiswidth="auto"oscillation detection if the difference is > 1 pixel by @βPavelVanecek in #β6450ResponsiveContainer: only shrinks in the dimensions where it needs to shrink by @βPavelVanecek in #β6367Treemap: fix animation stutters in Treemap by @βPavelVanecek in #β6326Sankey: fix unique key error by @βdaiboom in #β6352Website changes - https://recharts.github.io/
Unfortunately the current contributors and admins do not own recharts.org and the renewal of the domain remains up in the air. To remove that uncertainty we have deployed the website at our github pages URL instead.
New Contributors
Full Changelog: recharts/recharts@v3.2.1...v3.3.0
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!
Configuration
π Schedule: Branch creation - "every weekend" (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.