recharts 2.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 https://github.com/recharts/recharts/pull/4407
Fix
Address https://github.com/recharts/recharts/issues/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: useSVGAttributesinstead ofSVGPropsin forwardRef components by @ckifer in https://github.com/recharts/recharts/pull/4413typescript - Pie: fix Pierefwhich was cast toHTMLElementwhen therefis actually referring toSVGGElement. This gave false information to whoever is usingrefon thePiecomponent
Full Changelog: https://github.com/recharts/recharts/compare/v2.12.4...v2.12.5