Skip to content

v2.12.5

Compare
Choose a tag to compare
@ckifer ckifer released this 12 Apr 16:23
· 6 commits to master since this release

Small fixes while working on v3 continued...

What's Changed

Feat

  • BarChart: support percentage (of chart) for barSize. 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: use SVGAttributes instead of SVGProps in forwardRef components by @ckifer in #4413
  • typescript - Pie: fix Pie ref which was cast to HTMLElement when the ref is actually referring to SVGGElement. This gave false information to whoever is using ref on the Pie component

Full Changelog: v2.12.4...v2.12.5