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

Y-Axis auto scaling excludes datapoint at scale.x.max #250

Open
Pi77Bull opened this issue Nov 19, 2024 · 0 comments
Open

Y-Axis auto scaling excludes datapoint at scale.x.max #250

Pi77Bull opened this issue Nov 19, 2024 · 0 comments

Comments

@Pi77Bull
Copy link

I'm fiddling with min and max properties of the timeseries scale at the moment and I've come across a weird behaviour.

When setting the scale.x.max property to the x value of any datapoint, that datapoint is being ignored when the y-axis does its auto scaling.

Here's a minimal example: https://stackblitz.com/edit/vitejs-vite-yzysxr?file=src%2Fmain.ts
Uncomment line 32 to see the problem.

correct
incorrect

I'd appreciate if anyone could look into this :)

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

No branches or pull requests

1 participant