Skip to content

Option ifOverflow='extendDomain' not working anymore for ReferenceLine and ReferenceArea #3438

Description

@lukask-proxora
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Add a ReferenceLine or ReferenceArea that falls outside of the legend domains and set the prop ifOverflow to 'extendDomain'.

What is expected?

The domains are extended to fit the reference object.

What is actually happening?

The reference object is drawn, but the domains are not extended. This basically behaves as the option 'visible'.

Environment Info
Recharts v2.4.3
React 18.2.0
System Ubuntu 22.04.2 LTS
Browser Chromium 108.0.5359.124

This only happens since version 2.4.0
By changing the version in the code sandbox you can easily verify that it works correctly for version 3.3.2

Metadata

Metadata

Assignees

Labels

bugGeneral bug label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions