Releases: recharts/recharts
v2.13.0-alpha.4
What's Changed
Additional React 19 fixes - please keep adding reports to #4558, thanks!
Fix
ReferenceLine
: Re-add ReferenceLine types which caused a regression in alpha.0 by @zackliscio in #4610- Fix stacked charts and other defaultProp issues in React 19 by @ckifer in #4618
New Contributors
- @zackliscio made their first contribution in #4610
Full Changelog: v2.13.0-alpha.3...v2.13.0-alpha.4
v2.13.0-alpha.3
What's Changed
More React 19 specific fixes. If you are using R19, you must use overrides
/resolutions
to match your react-is
version with your react version
Fix
- v2.13.0-alpha.2: fix: remove isElement check on children in responsivecontainer by @ckifer in #4587
- v2.13.0-alpha.3: fix: legend defaultProps usage for R19 by @ckifer in #4589
Full Changelog: v2.13.0-alpha.1...v2.13.0-alpha.3
v2.13.0-alpha.1
What's Changed
v2.13.0-alpha.0 contains some fixes for React 19 support
v2.13.0-alpha.1 contains what seems to be the rest of them
Fix
Please test this as much as possible using React 16.8 - 19! thank you!
Full Changelog: v2.12.7...v2.13.0-alpha.1
v2.12.7
Whats changed
Fix
Area
: re-add calculated areapoints
to theareaDot
callback props when it is a function. This was accidentally removed in v2.3. Fixes #4480Brush
: guard against undefined property access error when anariaLabel
is not specified. Follow up from #2093 (comment)
Full Changelog: v2.12.6...v2.12.7
v2.12.6
What's Changed
Fix
Tooltip
: fix glitch where Tooltip always rendered in the top left even if animation was disabled by @HHongSeungWoo in #4425 fixes #4424
Chore
CI/Build fix
: Added proper.js
suffixes to main module and jsnext:main paths in package.json by @dobosalparbc in #4431 fixes #2858
Full Changelog: v2.12.5...v2.12.6
v2.12.5
Small fixes while working on v3 continued...
What's Changed
Feat
BarChart
: support percentage (of chart) forbarSize
. 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
: useSVGAttributes
instead ofSVGProps
in forwardRef components by @ckifer in #4413typescript - Pie
: fix Pieref
which was cast toHTMLElement
when theref
is actually referring toSVGGElement
. This gave false information to whoever is usingref
on thePie
component
Full Changelog: v2.12.4...v2.12.5
v2.12.4
What's Changed
Small fixes while working on v3 continued...
Fix
Accessibility
: remove role attribute from recharts-wrapper which caused an accessibility violation with > 1 chart on the same page by @julianna-langston in #4386, fixes #4384X/YAxis
: fix incorrect padding calculation when there is 1 datapoint or less by @graup in #4314 closes #4313
className
fixes - helps slowly address #2169:
Tooltip
: allow customclassName
oncursor
by @108yen in #4306RadarChart/RadialBarChart
: allow customclassName
onPolarRadiusAxis
,PolarAngleAxis
, andRadar
dot by @108yen in #4335Pie
: allow customclassName
onlabel
andlabelLine
ofPie
by @108yen in #4381
Full Changelog: v2.12.3...v2.12.4
v2.12.3
Some more small changes/fixes while working on 3.x
What's Changed
Fix
Legend
: fix issue where Legend was not taken into account when scaling the chart container by @zhonglin94 in #4272 closes #4246Area
: fixed a bug where className was not assigned to areaDot by @108yen in #4294 closes #4290RadialBar
: address regression where radial bar and its background were off from eachother because of rounding by @ckifer in #4295 closes #4264ErrorBar
: do not countnull
as 0 in error bar domain by @rinkstiekema in #4297
New Contributors
- @zhonglin94 made their first contribution in #4272
Full Changelog: v2.12.2...v2.12.3
v2.12.2
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 #4224ResponsiveContainer
: Remove incorrectly timed console.warn call, only log when using soon-to-be deprecated feature by @HHongSeungWoo in #4249
Full Changelog: v2.12.1...v2.12.2
v2.12.1
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: v2.12.0...v2.12.1