Skip to content

v3 Regression: Line doesn't draw when points are out of range #9564

Description

@beibean

Expected Behavior

Line should be drawn as it was in v2.9.4.

Current Behavior

When we have a line with two points out of X range (min/max), this line is not drawn.

Steps to Reproduce

For a linear graph:

  • Set x.min: 0
  • Set x.max: 100
  • Set two points laying at x: -10 and x: 100

See this project

Context

We need this in our application, where you can see temperature changes in different zooms levels such as day or hour. With this behaviour, when you move to an hour zoom where temperature has not changed, you see an empty graph which is very ugly.

Environment

  • Chart.js version: 3.5.0
  • Link to your project: See this project

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions