Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 10, 2025

This PR contains the following updates:

Package Change Age Confidence
recharts 2.1.16 -> 3.3.0 age confidence

Release Notes

recharts/recharts (recharts)

v3.3.0

Compare Source

v3.2.1

Compare Source

What's Changed

Fix

New Contributors

Full Changelog: recharts/recharts@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: recharts/recharts@v3.1.2...v3.1.3

v3.1.2

Compare Source

What's Changed

Fix

Full Changelog: recharts/recharts@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: recharts/recharts@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: recharts/recharts@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: 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 #​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: 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!

v2.15.4

Compare Source

What's Changed

Last 2.x patch - releasing since the @babel/runtime vulnerability 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 #​5840
  • Bar: allow minPointSize function to receive null and undefined values by @​eino in #​5947
  • TypeScript: fix issue which caused build errors when allowSyntheticDefaultImports: false by @​tfaller in #​5810
Security
  • resolve @​babel/runtime ReDoS vulnerability (SNYK-JS-BABELRUNTIME-10044504) by @​moehaje in #​5969
    • recharts isn't vulnerable to this per-se, but it does show up in security tooling like snyk

New Contributors

Full Changelog: recharts/recharts@v2.15.3...v2.15.4

v2.15.3

Compare Source

Last patch release before 3.0 🚀

What's Changed

Fix
  • XAxis: fix padding calculation for padding="gap" and padding="no-gap" when XAxis is type number by @​jackfletch in #​5759

Full Changelog: recharts/recharts@v2.15.2...v2.15.3

v2.15.2

Compare 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 #​5561
  • Dot: re-include points object in dotProps by @​brodriguezmilla in #​5657
  • Tooltip: add SVGProps to Tooltip payload type to account for svg properties such as opacity passed by the user by @​ally1002 in #​5712
  • Tooltip/Bar: fix activeBar prop not working when tooltip shared={false} by @​nizans in #​5718
  • General: allow data-* props to be spread on svg elements and not be filtered out by @​prtmwrkr in #​5666

New Contributors

Full Changelog: recharts/recharts@v2.15.1...v2.15.2

v2.15.1

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

New Contributors

Full Changelog: recharts/recharts@v2.15.0...v2.15.1

v2.15.0

Compare Source

What's Changed

Final 2.x React 19 support

!!! You still need to override your react-is version to match react/react-dom for React 19 to work with recharts !!! - see thread here - this limitation will be alleviated in recharts 3.0

Feat

Add React 19 to peerDependencies - closes #​4558

Fix

  • Bar: fix Bar mouse event types regression - closes #​5308
  • Remove React19 deprecated ReactText type

Full Changelog: recharts/recharts@v2.14.1...v2.15.0

v2.14.1

Compare Source

What's Changed
Fix
  • X/YAxis: omit unused/accidentally added (in 2.13) ref prop from axis types in #​5295. Resolves #​5294

Full Changelog: recharts/recharts@v2.14.0...v2.14.1

v2.14.0

Compare 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/Funnel Chart components: add support for top level onContextMenu and onDoubleClick events #​5254 by @​abarreau in #​5255

Fix

Typescript fixes
  • LabelList: dataKey prop for LabelList should accept any object by @​ckifer in #​5252
  • Pie: PieSectorDataItem.payload should be an object rather than an array by @​BTOdell in #​5263

New Contributors

Full Changelog: recharts/recharts@v2.13.3...v2.14.0

v2.13.3

Compare Source

What's Changed

Small change which may (or may not) help when using ResponsiveContainer with React 19. Worth a shot.

!! react-is override is still needed for React 19 to work correctly with recharts !! - see #​4558

Fix
  • 7a67b41 ResponsiveContainer - swap isElement from react-is with React.isValidElement

Full Changelog: recharts/recharts@v2.13.2...v2.13.3

v2.13.2

Compare Source

What's Changed

  • Another fix from 2.13. Categorical charts should have their ref props back.
Fix

Full Changelog: recharts/recharts@v2.13.1...v2.13.2

v2.13.1

Compare Source

What's Changed

  • Small bug fixes from the 2.13 release
Fix
  • ResponsiveContainer: fix internal bug from 2.13 which causes responsive container to render incorrectly by @​ckifer in #​5174
  • Bar: radius prop type fixed to match expected type by @​lifeofpavs in #​5116

New Contributors

Full Changelog: recharts/recharts@v2.13.0...v2.13.1

v2.13.0

Compare Source

What's Changed

React 19 compat, fix annoying defaultProps warnings, bug fixes

Feat
  • React 19 compatibility - see #​4558

    • peerDependencies still cannot be updated until 3.0 release, but for now R19 beta/RC releases can be used with Recharts under the following conditions:
      • Your react-is version matches your react and react-dom versions: use your package manager's override functionality to match your react-is version to your react version or else recharts elements will not show - see #​4558 (comment)
  • CartesianGrid: add support for ry prop to curve the corner of the grid background - progress on #​3062

Fix
Typescript
  • JSDoc comments will now be preserved in TypeScript definitions by @​mxdvl in #​5071

New Contributors

Full Changelog: recharts/recharts@v2.12.7...v2.13.0

v2.12.7

Compare Source

Whats changed

Fix
  • Area: re-add calculated area points to the areaDot callback props when it is a function. This was accidentally removed in v2.3. Fixes #​4480
  • Brush: guard against undefined property access error when an ariaLabel is not specified. Follow up from #​2093 (comment)

Full Changelog: recharts/recharts@v2.12.6...v2.12.7

v2.12.6

Compare Source

What's Changed

Fix
Chore

Full Changelog: recharts/recharts@v2.12.5...v2.12.6

v2.12.5

Compare Source

Small fixes while working on v3 continued...

What's Changed

Feat
  • BarChart: support percentage (of chart) for barSize. Helps set size of bar when there are few datapoints Fixes #​3640 by @​graup in #​4407
Fix

Address #​4382

A recent release of @types/react broke some builds because they removed certain (unused) events from common event handler attributes. recharts was unknowingly enumerating keys of SVGProps in the Layer component with the old types and causing a type error on tsc with skipLibCheck: false

  • typescript - Layer: use SVGAttributes instead of SVGProps in forwardRef components by @​ckifer in #​4413
  • typescript - Pie: fix Pie ref which was cast to HTMLElement when the ref is actually referring to SVGGElement. This gave false information to whoever is using ref on the Pie component

Full Changelog: recharts/recharts@v2.12.4...v2.12.5

v2.12.4

Compare Source

What's Changed

Small fixes while working on v3 continued...

Fix

className fixes - helps slowly address #​2169:

  • Tooltip: allow custom className on cursor by @​108yen in #​4306
  • RadarChart/RadialBarChart: allow custom className on PolarRadiusAxis, PolarAngleAxis, and Radar dot by @​108yen in #​4335
  • Pie: allow custom className on label and labelLine of Pie by @​108yen in #​4381

Full Changelog: recharts/recharts@v2.12.3...v2.12.4

v2.12.3

Compare Source

Some more small changes/fixes while working on 3.x

What's Changed

Fix

New Contributors

Full Changelog: recharts/recharts@v2.12.2...v2.12.3

v2.12.2

Compare 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 #​4224
  • ResponsiveContainer: Remove incorrectly timed console.warn call, only log when using soon-to-be deprecated feature by @​HHongSeungWoo in #​4249

Full Changelog: recharts/recharts@v2.12.1...v2.12.2

v2.12.1

Compare 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.0

Compare 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

Fix

Chore

  • Cleanup, tests, and refactoring work. Thanks @​PavelVanecek
  • Upgrade react smooth, remove translateStyle, remove prop-types as a peerDep
  • Upgrade dev dependencies
    • Upgrade TypeScript to 4.9.5 (no definition changes from upgrade)

Storybook

  • New storybook stories and doc updates

New Contributors

Full Changelog: recharts/recharts@v2.11...v2.12.0

v2.11.0

Compare Source

v2.10.4

Compare Source

What's Changed

Fix some older bugs annoying bugs, TS typings, update to the storybook theme, and more

Fix
Storybook

New Contributors

Full Changelog: recharts/recharts@v2.10.3...v2.10.4

v2.10.3

Compare Source

What's Changed

New Contributors

Full Changelog: recharts/recharts@v2.10.2...v2.10.3

v2.10.2

Compare Source

What's Changed

Patch some bugs from 2.9 / 2.10

Fix
Accessibility
Refactor / Cleanup

New Contributors

Full Changelog: recharts/recharts@v2.10.1...v2.10.2

v2.10.1: Patch: Do not include types from test folder

Compare Source

Fixes #​3978

Full Changelog: recharts/recharts@v2.10...v2.10.1

v2.10.0

Compare Source

v2.9.3

Compare Source

Fix

Brush: Fix an issue where after 2.9 Brush does not correctly slice data when using Line components - fixes #​3929 - thank you @​HHongSeungWoo

v2.9.2

Compare Source

Fix another TS issue from 2.9.

Fix
  • Line/ActiveDot: Fix breaking type change for the onClick function of activeDot on Line - this resolves #​3922 - thank you @​andrewangelle for the quick turnaround

v2.9.1

Compare Source

Bug fixes following 2.9.0

Fix

  • TypeScript: fix breaking change in ActiveShape types - fixes #​3911 - thanks @​andrewangelle
  • CartesianGrid: fix breaking change where you could no longer render CartesianGrid without a y-axis - fixes #​3907 - thanks @​akamfoad
  • Line: fix infinite loop when strokeDasharray is '0' on Line - fixes #​3899 (and maybe others)

Full Changelog: recharts/recharts@v2.9.0...v2.9.1

v2.9.0

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

Configuration

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


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

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot
Copy link

changeset-bot bot commented Aug 10, 2025

⚠️ No Changeset found

Latest commit: 8fcc9d0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate renovate bot force-pushed the renovate/recharts-3.x branch from 333356d to 3569dd5 Compare October 5, 2025 11:30
@renovate renovate bot force-pushed the renovate/recharts-3.x branch from 3569dd5 to 8fcc9d0 Compare October 17, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant