fix(deps): update dependency recharts to v3 #5

Open
renovate-bot wants to merge 1 commits from renovate/recharts-3.x into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
recharts ^2.15.3 -> ^3.0.0 age confidence

Release Notes

recharts/recharts (recharts)

v3.2.1

Compare Source

What's Changed

Fix

New Contributors

Full Changelog: https://github.com/recharts/recharts/compare/v3.2.0...v3.2.1

v3.2.0

Compare 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
Hooks
Fix
Chore

New Contributors (thanks everyone!)

Full Changelog: https://github.com/recharts/recharts/compare/v3.1.2...v3.1.3

v3.1.2

Compare Source

What's Changed

Fix

Full Changelog: https://github.com/recharts/recharts/compare/v3.1.1...v3.1.2

v3.1.1

Compare Source

What's Changed

Fix
  • General: Don't apply duplicate IDs in the DOM by @​PavelVanecek in #​6111
  • Stacked 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 item data prop #​6073 by @​PavelVanecek
  • Stacked Area/Bar: exclude stacked axis domain when not relevant for axis by @​rinkstiekema in #​6162 fixes issue where numeric stacked charts would not render correctly
  • Area Chart: ranged area chart - show active dot on both points instead of just the top one by @​sroy8091 in #​6116 fixes #​6080
  • Polar Charts/Label: fix Label in polar charts by @​PavelVanecek in #​6126
  • Scatter/ErrorBar: choose implicit Scatter ErrorBar direction based on chart layout (to be the same as 2.x) by @​PavelVanecek in #​6159
  • X/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 #​6161
  • X/YAxis: pass axis padding info to custom tick components by @​shreedharbhat98 in #​6163
Chore / Testing
  • good progress on our journey to enable strictNullChecks
  • addition of playwright visual regression tests to CI
  • split Animate into JavascriptAnimate and CSSTransitionAnimate by @​PavelVanecek in #​6175

New Contributors

Full Changelog: https://github.com/recharts/recharts/compare/v3.1.0...v3.1.1

v3.1.0

Compare Source

What's Changed

Bug fixes (old and new) and a few new hooks post 3.0 launch!

Feat

More hooks!

Fix
  • Legend: After hiding and showing legend elements, keep them in the same order as before by @​PavelVanecek in #​6026
  • Bar: add payload as a valid property on BarRectangleItem by @​ckifer in #​6029
  • Accessibility: Remove role=application from recharts wrapper (this was removed in 2.x for accessibility reasons) by @​PavelVanecek in #​6060
  • ResponsiveContainer: Add overflow: visible zero-size wrapper so that ResponsiveContainer can shrink by @​PavelVanecek in #​6068
  • X/YAxis: Fix tickCount and allowDecimals if axis domain does not include the keyword 'auto' by @​PavelVanecek in #​6070
  • Tooltip: Fix active tooltip and dots when there are multiple graphical items each with their own data by @​PavelVanecek in #​6074
Docs
Chore

New Contributors

Full Changelog: https://github.com/recharts/recharts/compare/v3.0.2...v3.1.0

v3.0.2

Compare Source

What's Changed

Please skip 3.0.1 and go straight to 3.0.2 - #​6022. In React.StrictMode charts in 3.0.1 were not rendering at all. This revert should resolve that.

Full Changelog: https://github.com/recharts/recharts/compare/v3.0.1...v3.0.2

v3.0.1

Compare Source

⚠️ Version 3.0.1 has a bug where some charts will not render in React strict mode. Please use 3.0.2 or higher. ⚠️

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 caused labelRef to get passed to custom DOM elements which logged an error/warning by @​saurabhraj123 in #​6008
  • Pie->Label: fix issue where pie labels were not rendering correctly when specified as a child of Pie by @​PavelVanecek in #​5987
  • Legend: apply legend itemSorter for custom content as 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 #​6017
  • Bar->Brush: fix undefined access error when using Brush with stacked bar charts by @​PavelVanecek in #​6009
  • X/YAxis: fix DecimalError when creating vertical oriented charts with a single datapoint by @​ckifer in #​6016
  • X/Y/PolarAngle/PolarRadius Axis: tickFormatter is no longer called with data indexes before the actual data by @​PavelVanecek in #​6019

Full Changelog: https://github.com/recharts/recharts/compare/v3.0.0...v3.0.1

v3.0.0

Compare 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 or Customized, etc.
  • <Customized /> no longer receives recharts state/props
  • Removal of internal props that were always supposed to only be internal to recharts
  • Remove previously deprecated props
  • ...see full list linked above
New Features
  • Custom Components - you can now render any react component in the recharts tree structure (but it must still be renderable within an SVG). Previously this was controlled and filtered by recharts
  • Tooltip Portals - you can now use portals to position your tooltip data anywhere you'd like, including outside of your chart
  • Legend Portals - similar to the above, you can now use portals to position your Legend anywhere you'd like, including outside of your chart
  • Accessible by default - accessibilityLayer is now on on all polar and cartesian charts by default. Tab into the chart and use the arrow keys to navigate.
  • Polar charts now support multiple axes (similar to cartesian charts)
  • Tooltip: You can now select which axis your Tooltip belongs to using axisId
  • YAxis: auto width calculation for YAxes - set width="auto"
  • X/YAxis: Add symlog d3 scale type
Bug 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

  • Animation improvements
  • Typescript improvements
  • Accessibility fixes/improvements
  • Pie: no more border around pie sectors on click, etc.
  • CartesianGrid: background now renders below the grid lines instead of above
  • and more!

Our 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [recharts](https://github.com/recharts/recharts) | [`^2.15.3` -> `^3.0.0`](https://renovatebot.com/diffs/npm/recharts/2.15.4/3.2.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/recharts/3.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/recharts/2.15.4/3.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>recharts/recharts (recharts)</summary> ### [`v3.2.1`](https://github.com/recharts/recharts/releases/tag/v3.2.1) [Compare Source](https://github.com/recharts/recharts/compare/v3.2.0...v3.2.1) #### What's Changed ##### Fix - `X/YAxis, etc.`: reduce re-renders to fix blinking line in Zoom & Highlight example by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6315](https://github.com/recharts/recharts/pull/6315) - `Bar`: Remove redundant `Rectangle` import, fixes tsup builds with recharts in them by [@&#8203;guscost](https://github.com/guscost) in [#&#8203;6305](https://github.com/recharts/recharts/pull/6305) - `Pie`: fix PieLabel types by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6313](https://github.com/recharts/recharts/pull/6313) - `Brush`: fix index off by one error when `margin` is 0 by [@&#8203;ckifer](https://github.com/ckifer) in [#&#8203;6323](https://github.com/recharts/recharts/pull/6323) - Enable dev tools via Global module instead of window by [@&#8203;uncaught](https://github.com/uncaught) in [#&#8203;6309](https://github.com/recharts/recharts/pull/6309) #### New Contributors - [@&#8203;guscost](https://github.com/guscost) made their first contribution in [#&#8203;6305](https://github.com/recharts/recharts/pull/6305) **Full Changelog**: <https://github.com/recharts/recharts/compare/v3.2.0...v3.2.1> ### [`v3.2.0`](https://github.com/recharts/recharts/releases/tag/v3.2.0) [Compare Source](https://github.com/recharts/recharts/compare/v3.1.2...v3.2.0) #### 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 Pie `outerRadius` callbacks by [@&#8203;rephaelberkooz](https://github.com/rephaelberkooz) in [#&#8203;6191](https://github.com/recharts/recharts/pull/6191) - `PolarGrid`: add `fill` color support to by [@&#8203;mindtraveller](https://github.com/mindtraveller) in [#&#8203;6287](https://github.com/recharts/recharts/pull/6287) ##### Hooks - **New** : `useXAxisDomain` and `useYAxisDomain` hooks by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6201](https://github.com/recharts/recharts/pull/6201) - **New**: `useMargin` hook by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6224](https://github.com/recharts/recharts/pull/6224) ##### Fix - `Bar`: fix unnecessary line breaks in Bar labels by [@&#8203;eino](https://github.com/eino) in [#&#8203;6214](https://github.com/recharts/recharts/pull/6214) - `Bar`: improve `Bar` performance when `activeBar` is turned off by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6290](https://github.com/recharts/recharts/pull/6290) - `Stacked Bar/Area`: fix stacked charts with duplicate categorical data by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6194](https://github.com/recharts/recharts/pull/6194) - `Scatter`: fix exception when Scatter data has non-string `type` property by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6248](https://github.com/recharts/recharts/pull/6248) - `X/YAxis`: fix blinking when changing props by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6262](https://github.com/recharts/recharts/pull/6262) - `PolarAngleAxis/Radar`: fix polar angle axis ticks text positions by [@&#8203;mindtraveller](https://github.com/mindtraveller) in [#&#8203;6276](https://github.com/recharts/recharts/pull/6276) - `Label`: allow rendering Labels as nested children in `XAxis`, `YAxis` and Reference elements by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6219](https://github.com/recharts/recharts/pull/6219) `LabelList`: fix issue with LabelList not rendering in `Pie` charts by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6246](https://github.com/recharts/recharts/pull/6246) - `Text`: fix exception when `Text`'s children is empty and scaleToFit=true by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6282](https://github.com/recharts/recharts/pull/6282) - `Tooltip`: bound Tooltip coordinates to the chart container in synchronized charts by [@&#8203;shreedharbhat98](https://github.com/shreedharbhat98) in [#&#8203;6263](https://github.com/recharts/recharts/pull/6263) - `Brush:` allow brush travelers to be controlled by keys after mouse interaction by [@&#8203;ckifer](https://github.com/ckifer) in [#&#8203;6285](https://github.com/recharts/recharts/pull/6285) - `useActiveTooltipDataPoints `: fix infinite rendering loop by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6247](https://github.com/recharts/recharts/pull/6247) ##### Chore - Upgrade to ESLint 9 by [@&#8203;NishargShah](https://github.com/NishargShah) in [#&#8203;6284](https://github.com/recharts/recharts/pull/6284) - Add better storybook docs for Text component by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6278](https://github.com/recharts/recharts/pull/6278) - Make Recharts Redux devTools registration opt-in (fixes [#&#8203;6250](https://github.com/recharts/recharts/issues/6250)) by [@&#8203;uncaught](https://github.com/uncaught) in [#&#8203;6264](https://github.com/recharts/recharts/pull/6264) - Continued refactoring/improvements by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) 🚀 #### New Contributors (thanks everyone!) - [@&#8203;rephaelberkooz](https://github.com/rephaelberkooz) made their first contribution in [#&#8203;6189](https://github.com/recharts/recharts/pull/6189) - [@&#8203;uncaught](https://github.com/uncaught) made their first contribution in [#&#8203;6264](https://github.com/recharts/recharts/pull/6264) - [@&#8203;mindtraveller](https://github.com/mindtraveller) made their first contribution in [#&#8203;6276](https://github.com/recharts/recharts/pull/6276) - [@&#8203;NishargShah](https://github.com/NishargShah) made their first contribution in [#&#8203;6284](https://github.com/recharts/recharts/pull/6284) **Full Changelog**: <https://github.com/recharts/recharts/compare/v3.1.2...v3.1.3> ### [`v3.1.2`](https://github.com/recharts/recharts/releases/tag/v3.1.2) [Compare Source](https://github.com/recharts/recharts/compare/v3.1.1...v3.1.2) #### What's Changed ##### Fix - `Label/Polar Charts`: `Label` viewbox should now be present in polar charts and address [#&#8203;6030](https://github.com/recharts/recharts/issues/6030) by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6180](https://github.com/recharts/recharts/pull/6180) - Add LRU cache for string size measurements ([#&#8203;3955](https://github.com/recharts/recharts/issues/3955)) by [@&#8203;shreedharbhat98](https://github.com/shreedharbhat98) in [#&#8203;6176](https://github.com/recharts/recharts/pull/6176) **Full Changelog**: <https://github.com/recharts/recharts/compare/v3.1.1...v3.1.2> ### [`v3.1.1`](https://github.com/recharts/recharts/releases/tag/v3.1.1) [Compare Source](https://github.com/recharts/recharts/compare/v3.1.0...v3.1.1) #### What's Changed ##### Fix - `General`: Don't apply duplicate IDs in the DOM by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6111](https://github.com/recharts/recharts/pull/6111) - `Stacked 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 item `data` prop [#&#8203;6073](https://github.com/recharts/recharts/issues/6073) by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) - `Stacked Area/Bar`: exclude stacked axis domain when not relevant for axis by [@&#8203;rinkstiekema](https://github.com/rinkstiekema) in [#&#8203;6162](https://github.com/recharts/recharts/pull/6162) fixes issue where numeric stacked charts would not render correctly - `Area Chart`: ranged area chart - show active dot on both points instead of just the top one by [@&#8203;sroy8091](https://github.com/sroy8091) in [#&#8203;6116](https://github.com/recharts/recharts/pull/6116) fixes [#&#8203;6080](https://github.com/recharts/recharts/issues/6080) - `Polar Charts/Label`: fix `Label` in polar charts by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6126](https://github.com/recharts/recharts/pull/6126) - `Scatter/ErrorBar`: choose implicit Scatter ErrorBar direction based on chart layout (to be the same as 2.x) by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6159](https://github.com/recharts/recharts/pull/6159) - `X/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 [@&#8203;ethphan](https://github.com/ethphan) in [#&#8203;6161](https://github.com/recharts/recharts/pull/6161) - `X/YAxis`: pass axis padding info to custom tick components by [@&#8203;shreedharbhat98](https://github.com/shreedharbhat98) in [#&#8203;6163](https://github.com/recharts/recharts/pull/6163) ##### Chore / Testing - good progress on our journey to enable `strictNullChecks` - addition of playwright visual regression tests to CI - split `Animate` into `JavascriptAnimate` and `CSSTransitionAnimate` by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6175](https://github.com/recharts/recharts/pull/6175) #### New Contributors - [@&#8203;sroy8091](https://github.com/sroy8091) made their first contribution in [#&#8203;6116](https://github.com/recharts/recharts/pull/6116) - [@&#8203;ethphan](https://github.com/ethphan) made their first contribution in [#&#8203;6161](https://github.com/recharts/recharts/pull/6161) **Full Changelog**: <https://github.com/recharts/recharts/compare/v3.1.0...v3.1.1> ### [`v3.1.0`](https://github.com/recharts/recharts/releases/tag/v3.1.0) [Compare Source](https://github.com/recharts/recharts/compare/v3.0.2...v3.1.0) #### What's Changed Bug fixes (old and new) and a few new hooks post 3.0 launch! ##### Feat More hooks! - Add [`useOffset`](https://main--63da8268a0da9970db6992aa.chromatic.com/?path=/docs/api-hooks-useoffset--docs) and [`usePlotArea`](https://main--63da8268a0da9970db6992aa.chromatic.com/?path=/docs/api-hooks-useplotarea--docs) hooks by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6057](https://github.com/recharts/recharts/pull/6057) - Add [`useActiveTooltipDataPoints` ](https://main--63da8268a0da9970db6992aa.chromatic.com/?path=/docs/api-hooks-useactivetooltipdatapoints--docs\&globals=storybook-addon-recharts-position:NORTH)hook by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6067](https://github.com/recharts/recharts/pull/6067) ##### Fix - `Legend`: After hiding and showing legend elements, keep them in the same order as before by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6026](https://github.com/recharts/recharts/pull/6026) - `Bar`: add `payload` as a valid property on `BarRectangleItem` by [@&#8203;ckifer](https://github.com/ckifer) in [#&#8203;6029](https://github.com/recharts/recharts/pull/6029) - `Accessibility`: Remove `role=application` from recharts wrapper (this was removed in 2.x for accessibility reasons) by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6060](https://github.com/recharts/recharts/pull/6060) - `ResponsiveContainer`: Add `overflow: visible` zero-size wrapper so that ResponsiveContainer can shrink by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6068](https://github.com/recharts/recharts/pull/6068) - `X/YAxis`: Fix `tickCount` and `allowDecimals` if axis domain does not include the keyword 'auto' by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6070](https://github.com/recharts/recharts/pull/6070) - `Tooltip`: Fix active tooltip and dots when there are multiple graphical items each with their own data by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6074](https://github.com/recharts/recharts/pull/6074) ##### Docs - Our storybook stories can now open in stackblitz by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6043](https://github.com/recharts/recharts/pull/6043) - Add hook inspector documentation by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6059](https://github.com/recharts/recharts/pull/6059) - See <https://main--63da8268a0da9970db6992aa.chromatic.com/?path=/docs/api-hooks-hookinspector--docs> ##### Chore - Remove duplicate 'square' from Pie component’s legendType summary by [@&#8203;davinahi](https://github.com/davinahi) in [#&#8203;6054](https://github.com/recharts/recharts/pull/6054) #### New Contributors - [@&#8203;davinahi](https://github.com/davinahi) made their first contribution in [#&#8203;6054](https://github.com/recharts/recharts/pull/6054) **Full Changelog**: <https://github.com/recharts/recharts/compare/v3.0.2...v3.1.0> ### [`v3.0.2`](https://github.com/recharts/recharts/releases/tag/v3.0.2) [Compare Source](https://github.com/recharts/recharts/compare/v3.0.1...v3.0.2) ##### What's Changed Please skip 3.0.1 and go straight to 3.0.2 - [#&#8203;6022](https://github.com/recharts/recharts/issues/6022). In `React.StrictMode` charts in 3.0.1 were not rendering at all. This revert should resolve that. - `revert`: revert preserve legend order by [@&#8203;ckifer](https://github.com/ckifer) in [#&#8203;6023](https://github.com/recharts/recharts/pull/6023) **Full Changelog**: <https://github.com/recharts/recharts/compare/v3.0.1...v3.0.2> ### [`v3.0.1`](https://github.com/recharts/recharts/releases/tag/v3.0.1) [Compare Source](https://github.com/recharts/recharts/compare/v3.0.0...v3.0.1) ### ⚠️ Version 3.0.1 has a bug where some charts will not render in React strict mode. Please use 3.0.2 or higher. ⚠️ #### What's Changed Lots of fixes from the 3.0 release - thanks for the reports! Edit: broke something [#&#8203;6022](https://github.com/recharts/recharts/issues/6022) ##### Fix - `Label`: fix an issue which caused `labelRef` to get passed to custom DOM elements which logged an error/warning by [@&#8203;saurabhraj123](https://github.com/saurabhraj123) in [#&#8203;6008](https://github.com/recharts/recharts/pull/6008) - `Pie`->`Label`: fix issue where pie labels were not rendering correctly when specified as a child of `Pie` by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;5987](https://github.com/recharts/recharts/pull/5987) - `Legend`: apply legend `itemSorter` for custom `content` as well as default content by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6012](https://github.com/recharts/recharts/pull/6012) ~~\* `Legend`: keep legend items in the same order when they are hidden and shown by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6017](https://github.com/recharts/recharts/pull/6017)~~ - `Bar`->`Brush`: fix undefined access error when using `Brush` with stacked bar charts by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6009](https://github.com/recharts/recharts/pull/6009) - `X/YAxis`: fix `DecimalError` when creating vertical oriented charts with a single datapoint by [@&#8203;ckifer](https://github.com/ckifer) in [#&#8203;6016](https://github.com/recharts/recharts/pull/6016) - `X/Y/PolarAngle/PolarRadius Axis`: `tickFormatter` is no longer called with data indexes before the actual data by [@&#8203;PavelVanecek](https://github.com/PavelVanecek) in [#&#8203;6019](https://github.com/recharts/recharts/pull/6019) **Full Changelog**: <https://github.com/recharts/recharts/compare/v3.0.0...v3.0.1> ### [`v3.0.0`](https://github.com/recharts/recharts/releases/tag/v3.0.0) [Compare Source](https://github.com/recharts/recharts/compare/v2.15.4...v3.0.0) #### 🚀 Recharts 3 is here! Huge shoutout to [@&#8203;PavelVanecek](https://github.com/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**](https://github.com/recharts/recharts/wiki/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 or `Customized`, etc. - `<Customized />` no longer receives recharts state/props - Removal of internal props that were always supposed to only be internal to recharts - Remove previously deprecated props - ...see full list linked above ##### New Features - [Custom Components](http://github.com/recharts/recharts/wiki/3.0-migration-guide#custom-components) - you can now render any react component in the recharts tree structure (but it must still be renderable within an SVG). Previously this was controlled and filtered by recharts - [Tooltip Portals](https://github.com/recharts/recharts/wiki/3.0-migration-guide#tooltip-portal) - you can now use portals to position your tooltip data anywhere you'd like, including outside of your chart - Legend Portals - similar to the above, you can now use portals to position your Legend anywhere you'd like, including outside of your chart - [Accessible by default](https://github.com/recharts/recharts/wiki/3.0-migration-guide#accessibility-by-default) - `accessibilityLayer` is now on on all polar and cartesian charts by default. Tab into the chart and use the arrow keys to navigate. - [Polar charts now support multiple axes](https://github.com/recharts/recharts/wiki/3.0-migration-guide#multiple-axes-in-polar-charts) (similar to cartesian charts) - Tooltip: You can now select which axis your Tooltip belongs to [using `axisId`](https://github.com/recharts/recharts/wiki/3.0-migration-guide#multiple-axes-and-tooltip) - `YAxis`: [auto width calculation for YAxes ](https://github.com/recharts/recharts/wiki/3.0-migration-guide#auto-width-y-axis)- set `width="auto"` - `X/YAxis`: Add `symlog` d3 scale type ##### Bug 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](https://github.com/orgs/recharts/projects/2/views/1) - Animation improvements - Typescript improvements - Accessibility fixes/improvements - `Pie`: no more border around pie sectors on click, etc. - `CartesianGrid`: background now renders below the grid lines instead of above - and more! Our [3.0 storybook ](https://63da8268a0da9970db6992aa-zwbccjhbxb.chromatic.com/) has a lot of updated examples! </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40Ni4wIiwidXBkYXRlZEluVmVyIjoiNDEuOTkuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
renovate-bot force-pushed renovate/recharts-3.x from 27ab283606 to 17b822493b 2025-07-02 04:01:56 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from 17b822493b to b5d8b50205 2025-07-13 02:03:02 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from b5d8b50205 to 3db7b30c98 2025-07-26 05:05:16 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from 3db7b30c98 to f9bb09b9ea 2025-07-27 15:02:09 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from f9bb09b9ea to 5a747a42a2 2025-08-02 06:06:46 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from 5a747a42a2 to bb089ea908 2025-08-09 05:05:19 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from bb089ea908 to 0af63f356c 2025-08-16 06:04:48 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from 0af63f356c to dc96e99d19 2025-08-16 13:03:45 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from dc96e99d19 to ca21d64e69 2025-08-16 14:03:52 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from ca21d64e69 to f703f7bf14 2025-08-23 03:03:33 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from f703f7bf14 to 34899f9149 2025-08-23 04:03:08 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from 34899f9149 to 65d7ae5aa5 2025-08-23 08:02:09 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from 65d7ae5aa5 to 2ff4fd6a30 2025-08-30 03:03:11 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from 2ff4fd6a30 to ff2865f411 2025-09-06 07:01:16 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from ff2865f411 to b8026125e0 2025-09-13 03:03:48 +02:00 Compare
renovate-bot force-pushed renovate/recharts-3.x from b8026125e0 to 97369c681e 2025-09-13 06:02:44 +02:00 Compare
renovate-bot added 2 commits 2025-09-20 05:02:22 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 24s
Lint / Lint and Typecheck (pull_request) Failing after 24s
97369c681e
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 21s
Lint / Lint and Typecheck (pull_request) Failing after 25s
0d4aacb5d8
renovate-bot added 2 commits 2025-09-27 03:03:01 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 21s
Lint / Lint and Typecheck (pull_request) Failing after 25s
0d4aacb5d8
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 46s
Lint / Lint and Typecheck (pull_request) Failing after 29s
479021a303
renovate-bot added 2 commits 2025-09-27 05:02:29 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 46s
Lint / Lint and Typecheck (pull_request) Failing after 29s
479021a303
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 23s
Lint / Lint and Typecheck (pull_request) Failing after 29s
4970679fa6
renovate-bot added 2 commits 2025-09-28 15:01:43 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 23s
Lint / Lint and Typecheck (pull_request) Failing after 29s
4970679fa6
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 22s
Lint / Lint and Typecheck (pull_request) Failing after 23s
cfa1b7613b
renovate-bot added 2 commits 2025-10-04 04:04:16 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 22s
Lint / Lint and Typecheck (pull_request) Failing after 23s
cfa1b7613b
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 21s
Lint / Lint and Typecheck (pull_request) Failing after 23s
15806700da
renovate-bot added 2 commits 2025-10-04 05:04:10 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 21s
Lint / Lint and Typecheck (pull_request) Failing after 23s
15806700da
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 20s
Lint / Lint and Typecheck (pull_request) Failing after 20s
c51bc69c37
renovate-bot added 2 commits 2025-10-04 06:03:44 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 20s
Lint / Lint and Typecheck (pull_request) Failing after 20s
c51bc69c37
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 21s
Lint / Lint and Typecheck (pull_request) Failing after 21s
e9cd00bcef
renovate-bot added 2 commits 2025-10-04 10:02:30 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 21s
Lint / Lint and Typecheck (pull_request) Failing after 21s
e9cd00bcef
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 25s
Lint / Lint and Typecheck (pull_request) Failing after 25s
e5eb290e44
renovate-bot added 2 commits 2025-10-11 07:03:28 +02:00
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 25s
Lint / Lint and Typecheck (pull_request) Failing after 25s
e5eb290e44
fix(deps): update dependency recharts to v3
Some checks failed
Lint / Lint and Typecheck (push) Failing after 22s
Lint / Lint and Typecheck (pull_request) Failing after 21s
37d4a051e6
Some checks failed
Lint / Lint and Typecheck (push) Failing after 22s
Lint / Lint and Typecheck (pull_request) Failing after 21s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/recharts-3.x:renovate/recharts-3.x
git checkout renovate/recharts-3.x
Sign in to join this conversation.
No description provided.