v2.11
版本发布时间: 2024-01-27 19:41:13
recharts/recharts最新发布版本:v2.13.0-alpha.5(2024-09-06 01:32:02)
What's Changed
A special release: Containing a new chart type - SunburstChart by @csdiehl. Some behaviour might not yet align with the rest of the recharts components and API, we will improve it as (and if) issues come up. Thank you!
Secondly, I want to call out the work that @PavelVanecek is doing. We are slowly moving forward to improve our state management, using react context, and moving away from cloning components. While there still is a long way to go, I can not stress enough how important this refactoring is, both to the maintainability and extensibility of recharts. Great work!
Finally, we are continuously extending the Tooltip and enabling to control the Tooltip from the outside. With the work of @julianna-langston, we can now set the index for which to show a Tooltip. Further, we can now show the Tooltip for hidden elements.
POTENTIALLY BREAKING CHANGE: this release adds the use of the React context API which was not released until React 16.8. This means that 2.11 effectively drops support for React <16.8 unintentionally. Please report any breaking changes by making an issue.
Features
-
Sunburst
: new chart type by @csdiehl in https://github.com/recharts/recharts/pull/4037 -
Accessibility
: Enable developers to specify tooltip position before users interact by @julianna-langston in https://github.com/recharts/recharts/pull/4070 -
Tooltip
: Enable showing hidden graphicalItems in Tooltip by @nikolasrieble in https://github.com/recharts/recharts/pull/4083
Fix
-
ErrorBar
: will now throw an invariant if X direction is used without typenumber
on axis by @AnujSharma141 in https://github.com/recharts/recharts/pull/4042 -
Radar
: allow events to be passed successfully to the Radar dot by @AnujSharma141 in https://github.com/recharts/recharts/pull/4056 -
TypeScript / Tooltip
:Payload
type now correctly includesclassName
by @Nikhilh26 in https://github.com/recharts/recharts/pull/4069 -
Accessibility
: fix bug causingaccessibilityLayer
to break keyboard nav by @dahlie in https://github.com/recharts/recharts/pull/4079
Chore
- Lots of cleanup and refactoring work. We've introduced the use of context throughout Recharts refactoring and so far so good!
Storybook
- New storybook stories and additional examples
New Contributors
- @tran-simon made their first contribution in https://github.com/recharts/recharts/pull/3982
- @enriquetamames-cpi made their first contribution in https://github.com/recharts/recharts/pull/3950
- @hkmarques made their first contribution in https://github.com/recharts/recharts/pull/4002
- @csdiehl made their first contribution in https://github.com/recharts/recharts/pull/4016
- @AnujSharma141 made their first contribution in https://github.com/recharts/recharts/pull/4039
- @Nikhilh26 made their first contribution in https://github.com/recharts/recharts/pull/4069
- @dahlie made their first contribution in https://github.com/recharts/recharts/pull/4079
- @Shrenika123 made their first contribution in https://github.com/recharts/recharts/pull/4081
Full Changelog: https://github.com/recharts/recharts/compare/v2.10...v2.11