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.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.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/recharts/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/recharts/2.15.4/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>recharts/recharts (recharts)</summary> ### [`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:eyJjcmVhdGVkSW5WZXIiOiI0MC40Ni4wIiwidXBkYXRlZEluVmVyIjoiNDEuODIuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
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
Some checks failed
Lint / Lint and Typecheck (push) Failing after 25s
Lint / Lint and Typecheck (pull_request) Failing after 22s
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.