Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 30, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
recharts 2.15.4 -> 3.0.2 age adoption passing confidence

Release Notes

recharts/recharts (recharts)

v3.0.2

Compare Source

What's Changed

Please skip 3.0.1 and go straight to 3.0.2 - 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.

Full Changelog: recharts/recharts@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 https://github.com/recharts/recharts/issues/6022

Fix

Full Changelog: recharts/recharts@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 - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from MarcusNotheis as a code owner June 30, 2025 09:46
@renovate renovate bot added the dependencies PR or issue concerning dependency files label Jun 30, 2025
@renovate renovate bot requested a review from Lukas742 as a code owner June 30, 2025 09:46
@renovate renovate bot added the dependencies PR or issue concerning dependency files label Jun 30, 2025
@renovate renovate bot enabled auto-merge (squash) June 30, 2025 09:46
@coveralls
Copy link

coveralls commented Jun 30, 2025

Pull Request Test Coverage Report for Build 16120665511

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 89.052%

Totals Coverage Status
Change from base Build 16120416984: 0.0%
Covered Lines: 5328
Relevant Lines: 5983

💛 - Coveralls

@renovate renovate bot force-pushed the renovate/recharts-3.x branch 9 times, most recently from ce38711 to 9133833 Compare July 7, 2025 10:07
@renovate renovate bot force-pushed the renovate/recharts-3.x branch 7 times, most recently from 10c690e to 79a0159 Compare July 7, 2025 14:45
@renovate renovate bot force-pushed the renovate/recharts-3.x branch from 79a0159 to d986e99 Compare July 7, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies PR or issue concerning dependency files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant