recharts 2.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 https://github.com/recharts/recharts/pull/3596
- Extend clip path configuration with
clipDotprop by @tylerben @ckifer in https://github.com/recharts/recharts/pull/3602 - Support "bumpX" and "bumpY" curve types by @jacknevitt in https://github.com/recharts/recharts/pull/3617
Fix
- Account for
angleprop on XAxis visibility calculation by @bernardobelchior in https://github.com/recharts/recharts/pull/3576 - Propagate className to CartesianAxis by @mitrotasios in https://github.com/recharts/recharts/pull/3592
- Add SVGProps to PieLabel type by @timbonicus in https://github.com/recharts/recharts/pull/3594
- Export default tooltip and legend content components by @oschwede in https://github.com/recharts/recharts/pull/3604
- Fix error bars not working in stacked bar charts by @ckifer in https://github.com/recharts/recharts/pull/3612
- Remove role="img" attribute from bar to prevent accessibility issues by using incorrect role by @rhuangabrielsantos in https://github.com/recharts/recharts/pull/3614
Docs
- lots of storybook changes - go check it out!
Refactor
- refactor:
Dotto function component by @akamfoad in https://github.com/recharts/recharts/pull/3478 - refactor:
Polygonto function component by @akamfoad in https://github.com/recharts/recharts/pull/3479 - refactor:
Reactangleto function component by @akamfoad in https://github.com/recharts/recharts/pull/3480 - refactor:
Sectorto function component by @akamfoad in https://github.com/recharts/recharts/pull/3481 - refactor:
Trapezoidto function component by @akamfoad in https://github.com/recharts/recharts/pull/3482 - refactor: change
Symbolsto functional component by @Yilun-Sun in https://github.com/recharts/recharts/pull/3485 - refactor:
DefaultTooltipContentto be functional component by @akamfoad in https://github.com/recharts/recharts/pull/3618
New Contributors
- @CoffeeGeek101 made their first contribution in https://github.com/recharts/recharts/pull/3561
- @bernardobelchior made their first contribution in https://github.com/recharts/recharts/pull/3576
- @mitrotasios made their first contribution in https://github.com/recharts/recharts/pull/3592
- @timbonicus made their first contribution in https://github.com/recharts/recharts/pull/3594
- @oschwede made their first contribution in https://github.com/recharts/recharts/pull/3604
- @rhuangabrielsantos made their first contribution in https://github.com/recharts/recharts/pull/3614
- @jacknevitt made their first contribution in https://github.com/recharts/recharts/pull/3617
Full Changelog: https://github.com/recharts/recharts/compare/v2.6.2...v2.7.0