npm recharts 2.12.5
v2.12.5

latest release: 2.12.6
20 days ago

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

Don't miss a new recharts release

NewReleases is sending notifications on new releases.