Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical graph with scale causes a drift. #4286

Open
1 task done
lidorPMX opened this issue Mar 13, 2024 · 2 comments
Open
1 task done

Vertical graph with scale causes a drift. #4286

lidorPMX opened this issue Mar 13, 2024 · 2 comments

Comments

@lidorPMX
Copy link

lidorPMX commented Mar 13, 2024

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

create a vertically aligned graph, and add scale to the Y axis.

What is expected?

the points should be aligned with the ticks.

What is actually happening?

the points have a slight "drift" along the Y axis.

Environment Info
Recharts v2.12.2
React 18.2.0
System macos
Browser chrome 122.0.6261.112

I initially noticed it with log scale, but tested it with other scale options, and found that some have this effect and some do not.

image
@ckifer
Copy link
Member

ckifer commented Mar 14, 2024

Hmm, these scales are just created with d3. I'm not sure we have a huge amount of control in how they render

@ckifer
Copy link
Member

ckifer commented Mar 15, 2024

added toggle for layout to see how that effects things
Edit recharts-issue-template (forked)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants