Skip to content

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

Description

@Pi77Bull

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 :)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions