Skip to content

Releases: recharts/recharts

v2.12.6

21 Apr 06:16
Compare
Choose a tag to compare

What's Changed

Fix

  • Tooltip: fix glitch where Tooltip always rendered in the top left even if animation was disabled by @HHongSeungWoo in #4425 fixes #4424

Chore

  • CI/Build fix: Added proper .js suffixes to main module and jsnext:main paths in package.json by @dobosalparbc in #4431 fixes #2858

Full Changelog: v2.12.5...v2.12.6

v2.12.5

12 Apr 16:23
Compare
Choose a tag to compare

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

v2.12.4

04 Apr 00:35
Compare
Choose a tag to compare

What's Changed

Small fixes while working on v3 continued...

Fix

  • Accessibility: remove role attribute from recharts-wrapper which caused an accessibility violation with > 1 chart on the same page by @julianna-langston in #4386, fixes #4384
  • X/YAxis: fix incorrect padding calculation when there is 1 datapoint or less by @graup in #4314 closes #4313

className fixes - helps slowly address #2169:

  • Tooltip: allow custom className on cursor by @108yen in #4306
  • RadarChart/RadialBarChart: allow custom className on PolarRadiusAxis, PolarAngleAxis, and Radar dot by @108yen in #4335
  • Pie: allow custom className on label and labelLine of Pie by @108yen in #4381

Full Changelog: v2.12.3...v2.12.4

v2.12.3

15 Mar 22:12
Compare
Choose a tag to compare

Some more small changes/fixes while working on 3.x

What's Changed

Fix

  • Legend: fix issue where Legend was not taken into account when scaling the chart container by @zhonglin94 in #4272 closes #4246
  • Area: fixed a bug where className was not assigned to areaDot by @108yen in #4294 closes #4290
  • RadialBar: address regression where radial bar and its background were off from eachother because of rounding by @ckifer in #4295 closes #4264
  • ErrorBar: do not count null as 0 in error bar domain by @rinkstiekema in #4297

New Contributors

Full Changelog: v2.12.2...v2.12.3

v2.12.2

01 Mar 06:37
Compare
Choose a tag to compare

What's Changed

Some more small fixes while working on 3.x

Fix

  • Pie: pie label keys are not unique when data is 0 by @ckifer in #4224
  • ResponsiveContainer: Remove incorrectly timed console.warn call, only log when using soon-to-be deprecated feature by @HHongSeungWoo in #4249

Full Changelog: v2.12.1...v2.12.2

v2.12.1

20 Feb 17:49
Compare
Choose a tag to compare

What's Changed

Unintentional regression broke panoramic/compact Brush in 2.11.0 and 2.12.0, backport the fix to 2.x as we work on 3.x

Fix

  • fix: compact render should read from context, fixes brush panorama by @ckifer in #4194 fixes #4193

Full Changelog: v2.12.0...v2.12.1

v2.12.0

09 Feb 01:01
Compare
Choose a tag to compare

What's Changed

Bug fixes and a few small new features.

Releasing 2.12.0 to create a "clean slate" as contributors are discussing next moves for recharts.

We will try to focus on upgrades, architectural changes, and long-pending breaking changes so we can release a recharts v3. This will not be a large major version, or one hard to upgrade to, but rather a major version bump to prevent us from breaking people with library upgrades, large refactors, etc. Feature parity should hold. Thanks!

Features

  • Bar: Accept a callback function for minPointSize so it can be determined by data by @ckifer in #4099 closes #2819
  • Accessibility: Enable screen reader support with accessibilityLayer and default tooltip by @julianna-langston in #4077

Fix

Chore

  • Cleanup, tests, and refactoring work. Thanks @PavelVanecek
  • Upgrade react smooth, remove translateStyle, remove prop-types as a peerDep
  • Upgrade dev dependencies
    • Upgrade TypeScript to 4.9.5 (no definition changes from upgrade)

Storybook

  • New storybook stories and doc updates

New Contributors

Full Changelog: v2.11...v2.12.0

v2.11.0

27 Jan 11:41
Compare
Choose a tag to compare

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

v2.10.4

09 Jan 18:56
Compare
Choose a tag to compare

What's Changed

Fix some older bugs annoying bugs, TS typings, update to the storybook theme, and more

Fix

Storybook

New Contributors

Full Changelog: v2.10.3...v2.10.4

v2.10.3

01 Dec 01:40
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.10.2...v2.10.3