Releases: recharts/recharts
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
v2.12.0
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 #4099 closes #2819Accessibility
: Enable screen reader support with accessibilityLayer and default tooltip by @julianna-langston in #4077
Fix
Bar
:activeBar
should not be true by default, fixes a breaking change from 2.9.0 by @ckifer in #4139 - fixes #4103 and #4101Scatter
: fix non-unique key errors by @imagineLife in #4087 - fixes #4151 and #4060Pie
: fix non-unique key errors by @imagineLife in #4106Tooltip
: fix bug that caused throttled tooltip to stay active when moving mouse quickly by @HHongSeungWoo in #4100 fixes #4093
Chore
- Cleanup, tests, and refactoring work. Thanks @PavelVanecek
- Upgrade react smooth, remove
translateStyle
, remove prop-types as a peerDep- NOTE: animations will no longer have browser prefixes on them. Browsers have good support for this (https://caniuse.com/?search=transforms)
- Upgrade dev dependencies
- Upgrade TypeScript to 4.9.5 (no definition changes from upgrade)
Storybook
- New storybook stories and doc updates
New Contributors
- @TRFielder made their first contribution in #4088
Full Changelog: v2.11...v2.12.0
v2.11.0
What's Changed
A special release: Containing a new chart type - SunburstChart by @csdiehl. Some behaviour might not yet align with the rest of the recharts components and API, we will improve it as (and if) issues come up. Thank you!
Secondly, I want to call out the work that @PavelVanecek is doing. We are slowly moving forward to improve our state management, using react context, and moving away from cloning components. While there still is a long way to go, I can not stress enough how important this refactoring is, both to the maintainability and extensibility of recharts. Great work!
Finally, we are continuously extending the Tooltip and enabling to control the Tooltip from the outside. With the work of @julianna-langston, we can now set the index for which to show a Tooltip. Further, we can now show the Tooltip for hidden elements.
POTENTIALLY BREAKING CHANGE: this release adds the use of the React context API which was not released until React 16.8. This means that 2.11 effectively drops support for React <16.8 unintentionally. Please report any breaking changes by making an issue.
Features
Sunburst
: new chart type by @csdiehl in #4037Accessibility
: Enable developers to specify tooltip position before users interact by @julianna-langston in #4070Tooltip
: Enable showing hidden graphicalItems in Tooltip by @nikolasrieble in #4083
Fix
ErrorBar
: will now throw an invariant if X direction is used without typenumber
on axis by @AnujSharma141 in #4042Radar
: allow events to be passed successfully to the Radar dot by @AnujSharma141 in #4056TypeScript / Tooltip
:Payload
type now correctly includesclassName
by @Nikhilh26 in #4069Accessibility
: fix bug causingaccessibilityLayer
to break keyboard nav by @dahlie in #4079
Chore
- Lots of cleanup and refactoring work. We've introduced the use of context throughout Recharts refactoring and so far so good!
Storybook
- New storybook stories and additional examples
New Contributors
- @tran-simon made their first contribution in #3982
- @enriquetamames-cpi made their first contribution in #3950
- @hkmarques made their first contribution in #4002
- @csdiehl made their first contribution in #4016
- @AnujSharma141 made their first contribution in #4039
- @Nikhilh26 made their first contribution in #4069
- @dahlie made their first contribution in #4079
- @Shrenika123 made their first contribution in #4081
Full Changelog: v2.10...v2.11
v2.10.4
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 #4008 - closes #3718Brush
: Allow Brush to be controlled with start and end index via state by @ckifer in #4034 - closes #2404Legend
: TypeScript - Add the dataKey type to legend props by @HHongSeungWoo in #4035 - closes #2909Pie
: TypeScript - addedpayload
toPieSectorDataItem
type by @PavelVanecek in #4030Pie
: unique sector keys fix by @imagineLife in #4009 closes #3273RadialBar
: allow className to be passed to Radial Bar background by @ckifer in #4027 - closes #4011
Storybook
- Storybook: Added Legend component story! by @AnujSharma141 in #4039
- Storybook: add controlled brush storybook entry by @ckifer in #4032
- Storybook: Custom Storybook theme for Recharts brand by @csdiehl in #4016
New Contributors
- @csdiehl made their first contribution in #4016
- @AnujSharma141 made their first contribution in #4039
Full Changelog: v2.10.3...v2.10.4
v2.10.3
What's Changed
- Fix non-unique react
key
bug(s) by @imagineLife in #4006 - closes #4004
New Contributors
- @hkmarques made their first contribution in #4002
Full Changelog: v2.10.2...v2.10.3