recharts 2.4.0
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
- feat: Short-circuiting axis map creation with specified domain to improve performance by @bennettdams in https://github.com/recharts/recharts/pull/3293
fix
- ResponsiveContainer – memoize responsive container by @marcalexiei in https://github.com/recharts/recharts/pull/3169
- ResponsiveContainer - debounce updating early by @GreenGremlin in https://github.com/recharts/recharts/pull/3175 - fixes #3029
- Treemap - Non boolean attribute z error by @proke03 in https://github.com/recharts/recharts/pull/3228 - fixes #2952
- ErrorBar - overflowing chart area by @Yilun-Sun in https://github.com/recharts/recharts/pull/3300 - fixes #2978
- Bar - default
yandheightvalues correctly fornulldata points by @ckifer in https://github.com/recharts/recharts/pull/3346 - fixes #3344 - fix: remove axis domain default prop and calculate it dynamically by @lukask-proxora in https://github.com/recharts/recharts/pull/3328 - fixes #2593
- fix: functions are no longer spread onto SVG elements if an SVG attribute name conflcits with a recharts prop by @ckifer in https://github.com/recharts/recharts/pull/3327 - fixes #3310
type fixes
- Area - remove
pointsfrom SVGProps by @Yilun-Sun in https://github.com/recharts/recharts/pull/3182 - Radar - remove
pointsattribute from SVGProps by @ckifer in https://github.com/recharts/recharts/pull/3265 - refactor(Label & LabelList): refine types and disable react/no-array-index-key to avoid warnings by @marcalexiei in https://github.com/recharts/recharts/pull/3270
refactor
- ReferenceArea, ReferenceLine: added default values in params by @aushwin in https://github.com/recharts/recharts/pull/3283
- Bar- align code style by using destructuring for XAxis by @proke03 in https://github.com/recharts/recharts/pull/3349
- fix: typos by @Yilun-Sun in https://github.com/recharts/recharts/pull/3309
New Contributors
- @akib22 made their first contribution in https://github.com/recharts/recharts/pull/3179
- @proke03 made their first contribution in https://github.com/recharts/recharts/pull/3199
- @james2hey made their first contribution in https://github.com/recharts/recharts/pull/3229
- @nanguer made their first contribution in https://github.com/recharts/recharts/pull/3254
- @aushwin made their first contribution in https://github.com/recharts/recharts/pull/3283
- @bennettdams made their first contribution in https://github.com/recharts/recharts/pull/3293
Full Changelog: https://github.com/recharts/recharts/compare/v2.3.2...v2.4.0