Reproduction link

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
Reproduction link
Steps to reproduce
Add a
ReferenceLineorReferenceAreathat falls outside of the legend domains and set the propifOverflowto'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'.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