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:
^1.4.3
->^2.0.0
Release Notes
recharts/recharts (recharts)
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 https://github.com/recharts/recharts/pull/4224ResponsiveContainer
: Remove incorrectly timed console.warn call, only log when using soon-to-be deprecated feature by @HHongSeungWoo in https://github.com/recharts/recharts/pull/4249Full 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
Bar
: Accept a callback function forminPointSize
so it can be determined by data by @ckifer in https://github.com/recharts/recharts/pull/4099 closes https://github.com/recharts/recharts/issues/2819Accessibility
: Enable screen reader support with accessibilityLayer and default tooltip by @julianna-langston in https://github.com/recharts/recharts/pull/4077Fix
Bar
:activeBar
should not be true by default, fixes a breaking change from 2.9.0 by @ckifer in https://github.com/recharts/recharts/pull/4139 - fixes https://github.com/recharts/recharts/issues/4103 and https://github.com/recharts/recharts/issues/4101Scatter
: fix non-unique key errors by @imagineLife in https://github.com/recharts/recharts/pull/4087 - fixes https://github.com/recharts/recharts/issues/4151 and https://github.com/recharts/recharts/issues/4060Pie
: fix non-unique key errors by @imagineLife in https://github.com/recharts/recharts/pull/4106Tooltip
: fix bug that caused throttled tooltip to stay active when moving mouse quickly by @HHongSeungWoo in https://github.com/recharts/recharts/pull/4100 fixes https://github.com/recharts/recharts/issues/4093Chore
translateStyle
, remove prop-types as a peerDepStorybook
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
ResponsiveContainer
: fixref.current.current
without breaking users using current implementation by @HHongSeungWoo in https://github.com/recharts/recharts/pull/4008 - closes https://github.com/recharts/recharts/issues/3718Brush
: Allow Brush to be controlled with start and end index via state by @ckifer in https://github.com/recharts/recharts/pull/4034 - closes https://github.com/recharts/recharts/issues/2404Legend
: TypeScript - Add the dataKey type to legend props by @HHongSeungWoo in https://github.com/recharts/recharts/pull/4035 - closes https://github.com/recharts/recharts/issues/2909Pie
: TypeScript - addedpayload
toPieSectorDataItem
type by @PavelVanecek in https://github.com/recharts/recharts/pull/4030Pie
: unique sector keys fix by @imagineLife in https://github.com/recharts/recharts/pull/4009 closes https://github.com/recharts/recharts/issues/3273RadialBar
: allow className to be passed to Radial Bar background by @ckifer in https://github.com/recharts/recharts/pull/4027 - closes https://github.com/recharts/recharts/issues/4011Storybook
New Contributors
Full Changelog: recharts/recharts@v2.10.3...v2.10.4
v2.10.3
Compare Source
What's Changed
key
bug(s) by @imagineLife in https://github.com/recharts/recharts/pull/4006 - closes https://github.com/recharts/recharts/issues/4004New 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
Tooltip
: Fix tooltip rendering crash when activeItem is undefined by @tran-simon in https://github.com/recharts/recharts/pull/3982Cursor
: should no longer show gray background on hover where there was none previously @HHongSeungWoo in https://github.com/recharts/recharts/pull/3992Tooltip
: show tooltip whendata
prop is on individual cartesian component by @HHongSeungWoo in https://github.com/recharts/recharts/pull/3988LabelList
- TypeScript: LabelList offset prop issue by @ckifer in https://github.com/recharts/recharts/pull/3999Accessibility
Brush
: set default aria-label and allow value override by @enriquetamames-cpi in https://github.com/recharts/recharts/pull/3950Refactor / Cleanup
New Contributors
Full Changelog: recharts/recharts@v2.10.1...v2.10.2
v2.10.1
: Patch: Do not include types from test folderCompare Source
Fixes https://github.com/recharts/recharts/issues/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.9Brush
does not correctly slice data when usingLine
components - fixes https://github.com/recharts/recharts/issues/3929 - thank you @HHongSeungWoov2.9.2
Compare Source
Fix another TS issue from 2.9.
Fix
Line/ActiveDot
: Fix breaking type change for theonClick
function ofactiveDot
onLine
- this resolves https://github.com/recharts/recharts/issues/3922 - thank you @andrewangelle for the quick turnaroundv2.9.1
Compare Source
Bug fixes following 2.9.0
Fix
TypeScript
: fix breaking change inActiveShape
types - fixes https://github.com/recharts/recharts/issues/3911 - thanks @andrewangelleCartesianGrid
: fix breaking change where you could no longer renderCartesianGrid
without a y-axis - fixes https://github.com/recharts/recharts/issues/3907 - thanks @akamfoadLine
: fix infinite loop whenstrokeDasharray
is'0'
onLine
- fixes https://github.com/recharts/recharts/issues/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
Bar
: Implement activeBar for Bar component by @andrewangelle in https://github.com/recharts/recharts/pull/3756CartesianGrid
: addsyncWithticks
,horizonalValues
, andverticalValues
props to allow more grid line customization by @morozovkirill in https://github.com/recharts/recharts/pull/3746 solves https://github.com/recharts/recharts/issues/2153CartesianAxis
: Improve interval option 'equidistantPreserveStart' by @nikolasrieble in https://github.com/recharts/recharts/pull/3768CartesianAxis
: Throw an invariant when axisIds do not match between chart and axis components by @ckiferBrush
: add onDragEnd event to Brush component by @simkesd in https://github.com/recharts/recharts/pull/3774Fix
Funnel
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3772Scatter
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3839Pie
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3818RadialBar
: activeShape should work with Tooltip by @andrewangelle in https://github.com/recharts/recharts/pull/3803CartesianGrid
: Remove offset attribute from lines by @branberry in https://github.com/recharts/recharts/pull/3854 solves https://github.com/recharts/recharts/issues/3810ResponsiveContainer
: style prop is now passed down correctly by @d-gottlieb in https://github.com/recharts/recharts/pull/3726Legend
: "Functions are not valid as a React child" error in when a function is passed as the payload #3749 by @chris-mcdonald-dev in https://github.com/recharts/recharts/pull/3750Tooltip
: Fix tooltip position when container uses transform scale by @MateuszTrN in https://github.com/recharts/recharts/pull/3748Tooltip
: Tooltip does not include data from all charts when a separate dataset is passed to chart prop data and specified on Line/Area/etc prop data by @andrewangelle in https://github.com/recharts/recharts/pull/3733 fixes https://github.com/recharts/recharts/issues/3669Refactor
Impossible to mention all of the great refactoring done this release thanks to @PavelVanecek (33 PRs in one month!!) and others! Notable improvements include (non-breaking) type safety enhancements and source code file size reductions, and unit test improvements that will help reduce regressions.
Chore
Storybook
🚀 New Contributors (!!) 🚀
Full Changelog: recharts/recharts@v2.8.0...v2.9.0
v2.8.0
Compare Source
What's Changed
Minor changes - mostly focused on resolving errors from https://github.com/recharts/recharts/issues/3615
Feat
Pie
: default tabIndex and accept it as prop by @akamfoad in https://github.com/recharts/recharts/pull/3700Sankey
: add prop to control sankey sorting by @daformat in https://github.com/recharts/recharts/pull/3690Brush
: Add basic keyboard accessibility support for the Brush component by @julianna-langston in https://github.com/recharts/recharts/pull/3633RadialBarChart
: support className prop by @victorgare in https://github.com/recharts/recharts/pull/3654Fix
Refactor
Docs
New Contributors
Full Changelog: recharts/recharts@v2.7.2...v2.8.0
v2.7.3
Compare Source
tiny 1 change patch release that merges https://github.com/recharts/recharts/pull/3662 to fix an accessibility issue
img
role from line dotsv2.7.2
Compare Source
What's Changed
Fix
accessibilityLayer
when there is no tooltip (fixes undefined access bug) by @julianna-langston in https://github.com/recharts/recharts/pull/3627null
is passed into Linedot
(fixes undefined access bug althoughnull
is not a supported type fordot
) by @ckifer in https://github.com/recharts/recharts/pull/3637Other
Full Changelog: recharts/recharts@v2.7.1...v2.7.2
v2.7.1
Compare Source
What's Changed
Fix
clipDot
is provided withindot
of Area and Line then dots disappear andNaN
is errors appear in the DOMNew Contributors
Full Changelog: recharts/recharts@v2.7.0...v2.7.1
v2.7.0
Compare Source
What's Changed
Storybook updates, a few new features, bug fixes.
Note: This release may cause more reports of this defaultProps warning - we are aware of this and trying to come up with a feasible solution.
Feat
clipDot
prop by @tylerben @ckifer in https://github.com/recharts/recharts/pull/3602Fix
angle
prop on XAxis visibility calculation by @bernardobelchior in https://github.com/recharts/recharts/pull/3576Docs
Refactor
Dot
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3478Polygon
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3479Reactangle
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3480Sector
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3481Trapezoid
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3482Symbols
to functional component by @Yilun-Sun in https://github.com/recharts/recharts/pull/3485DefaultTooltipContent
to be functional component by @akamfoad in https://github.com/recharts/recharts/pull/3618New Contributors
Full Changelog: recharts/recharts@v2.6.2...v2.7.0
v2.6.2
Compare Source
fix bug where ts types error and cannot be generated when exporting in a consuming package. Fixes https://github.com/recharts/recharts/pull/3581
What's Changed
Full Changelog: recharts/recharts@v2.6.1...v2.6.2
v2.6.1
Compare Source
What's Changed
Quick fix for a bug crashing treemaps with tooltips in 2.6.0
Full Changelog: recharts/recharts@v2.6.0...v2.6.1
v2.6.0
Compare Source
What's Changed
Storybook documentation updates as well as our first accessibility feature thanks to @julianna-langston and some refactoring to function components!
Feat
Fix
equidistantPreserveStart
axis interval by @frontier159 in https://github.com/recharts/recharts/pull/3511Docs
Refactor
Curve
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3477PolarGrid
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3471Cross
to component function by @akamfoad in https://github.com/recharts/recharts/pull/3475Text
to function component by @akamfoad in https://github.com/recharts/recharts/pull/3463New Contributors
Full Changelog: recharts/recharts@v2.5.0...v2.6.0
v2.5.0
Compare Source
What's Changed
Feat
ResponsiveContainer
:onResize
callback function by @ckifer in https://github.com/recharts/recharts/pull/3361XAxis
,YAxis
:includeHidden
prop - include all datapoints in domain calculation even when hidden by @neefrehman in https://github.com/recharts/recharts/pull/3103XAxis
,YAxis
: new interval optionequidistantPreserveStart
by @nikolasrieble in https://github.com/recharts/recharts/pull/3392Fix
ResponsiveContainer
: default min-width to 0 to override default auto behavior that breaks flexbox layouts by @ckifer in https://github.com/recharts/recharts/pull/3391Area
: Add missing 'data' type to Area component by @ondrejvelisek in https://github.com/recharts/recharts/pull/3443Brush
/XAxis
: fix NaN regression wheninterval={0}
by @nikolasrieble in https://github.com/recharts/recharts/pull/3454ReferenceArea
/ReferenceLine
: revert regression whereifOverflow
prop is not obeyed due to missing defaultProps by @ckifer in https://github.com/recharts/recharts/pull/3455Docs
Dependencies
Refactor
New Contributors
Full Changelog: recharts/recharts@v2.4.3...v2.5.0
v2.4.3
Compare Source
v2.4.2
Compare Source
v2.4.2
cherry-picked commit
b625f72
to not pollute patch release with other changesfix
Full Changelog: recharts/recharts@v2.4.1...v2.4.2
v2.4.1
Compare Source
Accidentally added storybook types as a subfolder to types so the
package.json
is no longer referencing the correct types key.noEmit: true
storybook/*
in tsc emitWhat's Changed
Full Changelog: recharts/recharts@v2.4.0...v2.4.1
v2.4.0
Compare Source
This release marks the completion of recharts Milestone to migrate to Jest and React Testing Library. Thanks to all involved!
Check out the new storybook we're working on here
What's Changed
Trying to squish some bugs 🐛
feat
fix
y
andheight
values correctly fornull
data points by @ckifer in https://github.com/recharts/recharts/pull/3346 - fixes #3344type fixes
points
from SVGProps by @Yilun-Sun in https://github.com/recharts/recharts/pull/3182points
attribute from SVGProps by @ckifer in https://github.com/recharts/recharts/pull/3265refactor
New Contributors
Full Changelog: recharts/recharts@v2.3.2...v2.4.0
v2.3.2
Compare Source
What's Changed
fix
Full Changelog: recharts/recharts@v2.3.1...v2.3.2
v2.3.1
Compare Source
What's Changed
fix
Full Changelog: recharts/recharts@v2.3.0...v2.3.1
v2.3.0
Compare Source
What's Changed
For the full list of changes between v2.2.0 and v2.3.0 please see the v2.3.0-alpha.0 and the v2.3.0-alpha.1 release notes.
fix
victory-vendor
to replace esm only versions ofd3
withcjs
compatible versions from victory. We will introduce a breaking change in 3.0 to move back toesm
only d3 libraries. - closes #3012setState
- recharts/recharts@3214d14~ - reverted in 2.3.1refactor
chore
jest migration
New Contributors
Full Changelog:
v2.2.0
Compare Source
feat
fix
v2.1.16
Compare Source
fix
baseValue
prop (#3013)v2.1.15
Compare Source
fix
chore
v2.1.14
Compare Source
fix
v2.1.13
Compare Source
fix
chore
v2.1.12
Compare Source
fix
fix config for jest is to add the following configuration