Releases: recharts/recharts
v2.7.2
What's Changed
Fix
- Allow
accessibilityLayer
when there is no tooltip (fixes undefined access bug) by @julianna-langston in #3627 - Fix regression when
null
is passed into Linedot
(fixes undefined access bug althoughnull
is not a supported type fordot
) by @ckifer in #3637
Other
- Few minor storybook changes and dev chore items
Full Changelog: v2.7.1...v2.7.2
v2.7.1
What's Changed
Fix
- Move @storybook/addon-storysource to dev dependencies by @DmitryMarkov in #3623
- Moves dev dependency to correct location to prevent bundle size increase, etc.
- Fix defaults for r and strokeWidth when they aren't provided by the user by @ckifer in #3624
- Bug where if only
clipDot
is provided withindot
of Area and Line then dots disappear andNaN
is errors appear in the DOM
- Bug where if only
New Contributors
- @DmitryMarkov made their first contribution in #3623
Full Changelog: v2.7.0...v2.7.1
v2.7.0
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
- Allow adding initial dimensions to ResponsiveContainer by @akamfoad in #3596
- Extend clip path configuration with
clipDot
prop by @tylerben @ckifer in #3602 - Support "bumpX" and "bumpY" curve types by @jacknevitt in #3617
Fix
- Account for
angle
prop on XAxis visibility calculation by @bernardobelchior in #3576 - Propagate className to CartesianAxis by @mitrotasios in #3592
- Add SVGProps to PieLabel type by @timbonicus in #3594
- Export default tooltip and legend content components by @oschwede in #3604
- Fix error bars not working in stacked bar charts by @ckifer in #3612
- Remove role="img" attribute from bar to prevent accessibility issues by using incorrect role by @rhuangabrielsantos in #3614
Docs
- lots of storybook changes - go check it out!
Refactor
- refactor:
Dot
to function component by @akamfoad in #3478 - refactor:
Polygon
to function component by @akamfoad in #3479 - refactor:
Reactangle
to function component by @akamfoad in #3480 - refactor:
Sector
to function component by @akamfoad in #3481 - refactor:
Trapezoid
to function component by @akamfoad in #3482 - refactor: change
Symbols
to functional component by @Yilun-Sun in #3485 - refactor:
DefaultTooltipContent
to be functional component by @akamfoad in #3618
New Contributors
- @CoffeeGeek101 made their first contribution in #3561
- @bernardobelchior made their first contribution in #3576
- @mitrotasios made their first contribution in #3592
- @timbonicus made their first contribution in #3594
- @oschwede made their first contribution in #3604
- @rhuangabrielsantos made their first contribution in #3614
- @jacknevitt made their first contribution in #3617
Full Changelog: v2.6.2...v2.7.0
v2.7.0-alpha.0
Create alpha release to test some of the recent refactorings to function components. Generate release notes without edits - 2.7 will contain full release notes.
What's Changed
- Storybook: add custom tooltip by @CoffeeGeek101 in #3561
- fix(#3468): fix tick visibility calculation not accounting for angle prop on XAxis by @bernardobelchior in #3576
- docs(storybook): add dot stories by @ckifer in #3584
- docs(storybook): add polygon story by @ckifer in #3586
- fix: propagate className to CartesianAxis by @mitrotasios in #3592
- refactor:
Dot
to function component by @akamfoad in #3478 - refactor:
Polygon
to function component by @akamfoad in #3479 - Storybook: Show code for Area component via StorySource in Examples and via Source in API by @nikolasrieble in #3589
- Add SVGProps to PieLabel type by @timbonicus in #3594
- refactor:
Reactangle
to function component by @akamfoad in #3480 - refactor:
Sector
to function component by @akamfoad in #3481 - docs(storybook): add rectangle docs by @ckifer in #3599
- refactor:
Trapezoid
to function component by @akamfoad in #3482 - add: initial dimension to ResponsiveContainer by @akamfoad in #3596
- docs(storybook): adjust shapes to reflect new pattern, adjust wording by @ckifer in #3601
- Export default tooltip and legend content components by @oschwede in #3604
New Contributors
- @CoffeeGeek101 made their first contribution in #3561
- @bernardobelchior made their first contribution in #3576
- @mitrotasios made their first contribution in #3592
- @timbonicus made their first contribution in #3594
- @oschwede made their first contribution in #3604
Full Changelog: v2.6.2...v2.7.0-alpha.0
v2.6.2
v2.6.1
v2.6.0
What's Changed
Storybook documentation updates as well as our first accessibility feature thanks to @julianna-langston and some refactoring to function components!
Feat
- [a11y] Keyboard navigation support for categorical charts by @julianna-langston in #3546
- See docs here
Fix
- Update type for
equidistantPreserveStart
axis interval by @frontier159 in #3511 - Stop focusing on tooltip when displayed - use event listeners instead by @ArkaFred in #3515
Docs
- lots of storybook changes - go check it out!
- Getting close to parity with existing docs on recharts.org
- Added accessibility add-on
- Added accessibility docs to go with the keyboard navigation support
- Storybook 7 stable
- Much more!
Refactor
- refactor:
Curve
to function component by @akamfoad in #3477 - refactor:
PolarGrid
to function component by @akamfoad in #3471 - refactor:
Cross
to component function by @akamfoad in #3475 - refactor: tooltip to function component by @ckifer in #3336
- fix: defaultProps of tooltip, fix viewBox by @ckifer in #3554
- refactor:
Text
to function component by @akamfoad in #3463
New Contributors
- @akamfoad made their first contribution in #3466
- @nicholasgcoles made their first contribution in #3467
- @linhuiw made their first contribution in #3508
- @frontier159 made their first contribution in #3511
- @ArkaFred made their first contribution in #3515
- @julianna-langston made their first contribution in #3540
Full Changelog: v2.5.0...v2.6.0
v2.5.0
What's Changed
Feat
ResponsiveContainer
:onResize
callback function by @ckifer in #3361XAxis
,YAxis
:includeHidden
prop - include all datapoints in domain calculation even when hidden by @neefrehman in #3103XAxis
,YAxis
: new interval optionequidistantPreserveStart
by @nikolasrieble in #3392
Fix
ResponsiveContainer
: default min-width to 0 to override default auto behavior that breaks flexbox layouts by @ckifer in #3391Area
: Add missing 'data' type to Area component by @ondrejvelisek in #3443Brush
/XAxis
: fix NaN regression wheninterval={0}
by @nikolasrieble in #3454ReferenceArea
/ReferenceLine
: revert regression whereifOverflow
prop is not obeyed due to missing defaultProps by @ckifer in #3455
Docs
- lots of storybook changes - go check it out!
Dependencies
- chore: explicitly upgrade minor version of react-smooth by @ckifer in #3397
- chore: upgrade react-resize-detector to 8.x by @ckifer in #3418
Refactor
- Refactoring: Adapt getTicks to increase reusability of code by @nikolasrieble in #3393
- Refactoring: Extract TicksUtils from CartesianAxis and add unit tests by @nikolasrieble in #3386
New Contributors
- @ondrejvelisek made their first contribution in #3443
Full Changelog: v2.4.3...v2.5.0
v2.4.3
v2.4.3
cherry-picked commit 7925fd7 to not pollute patch release with other changes
fix
- ensure
originalDomain
is defaulted if no domain is provided - broketickCount
calculation - #3377- assign default to
originalDomain
for re-use in generateCategoricalChart - add unit tests so this doesn't happen again
- assign default to
Full Changelog: v2.4.2...v2.4.3
v2.4.2
v2.4.2
cherry-picked commit b625f72 to not pollute patch release with other changes
fix
- fix broken zoom functionality in 2.4 - #3369
- if chart is categorical we still need to calculate categorical domain even if the domain is given by the user
Full Changelog: v2.4.1...v2.4.2