Skip to content

v2.11.0

Compare
Choose a tag to compare
@nikolasrieble nikolasrieble released this 27 Jan 11:41
· 89 commits to master since this release

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

Fix

  • ErrorBar: will now throw an invariant if X direction is used without type number on axis by @AnujSharma141 in #4042
  • Radar: allow events to be passed successfully to the Radar dot by @AnujSharma141 in #4056
  • TypeScript / Tooltip: Payload type now correctly includes className by @Nikhilh26 in #4069
  • Accessibility: fix bug causing accessibilityLayer to break keyboard nav by @dahlie in #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

Full Changelog: v2.10...v2.11