recharts 3.1.0
What's Changed
Bug fixes (old and new) and a few new hooks post 3.0 launch!
Feat
More hooks!
- Add
useOffsetandusePlotAreahooks by @PavelVanecek in https://github.com/recharts/recharts/pull/6057 - Add
useActiveTooltipDataPointshook by @PavelVanecek in https://github.com/recharts/recharts/pull/6067
Fix
Legend: After hiding and showing legend elements, keep them in the same order as before by @PavelVanecek in https://github.com/recharts/recharts/pull/6026Bar: addpayloadas a valid property onBarRectangleItemby @ckifer in https://github.com/recharts/recharts/pull/6029Accessibility: Removerole=applicationfrom recharts wrapper (this was removed in 2.x for accessibility reasons) by @PavelVanecek in https://github.com/recharts/recharts/pull/6060ResponsiveContainer: Addoverflow: visiblezero-size wrapper so that ResponsiveContainer can shrink by @PavelVanecek in https://github.com/recharts/recharts/pull/6068X/YAxis: FixtickCountandallowDecimalsif axis domain does not include the keyword 'auto' by @PavelVanecek in https://github.com/recharts/recharts/pull/6070Tooltip: Fix active tooltip and dots when there are multiple graphical items each with their own data by @PavelVanecek in https://github.com/recharts/recharts/pull/6074
Docs
- Our storybook stories can now open in stackblitz by @PavelVanecek in https://github.com/recharts/recharts/pull/6043
- Add hook inspector documentation by @PavelVanecek in https://github.com/recharts/recharts/pull/6059
Chore
- Remove duplicate 'square' from Pie component’s legendType summary by @davinahi in https://github.com/recharts/recharts/pull/6054
New Contributors
- @davinahi made their first contribution in https://github.com/recharts/recharts/pull/6054
Full Changelog: https://github.com/recharts/recharts/compare/v3.0.2...v3.1.0