Skip to content

Prop domain is not default [0, "auto"] for <YAxis /> #3377

Description

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Choose package recharts@^2.4.0
  2. Set <YAxis tickCount={2} />
    2_2_4_0
  3. Set <YAxis tickCount={2} domain={[0, "auto"]}/>
    2_domain_2_4_0

What is expected?

2_2_3_2
Should behave like document said .

What is actually happening?

Omitted prop domain brokes tickCount since v2.4.0.

Environment Info
Recharts v2.4.2
React 17.0
System Windows
Browser Chrome

Metadata

Metadata

Assignees

Labels

P0Critical priority issuesbugGeneral bug label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions