Skip to content

[Bug] Order of data point timestamps reverse step option on line serie #20658

@jsarem

Description

@jsarem

Version

5.6.0

Link to Minimal Reproduction

https://jsfiddle.net/adn0qyzj/

Steps to Reproduce

  1. Create line graph with time axis
  2. Create serie with step option set to end
  3. Add data points for the serie in descending order (latest value first)
  4. Line is rendered correctly but step option is reversed

... or open reproduction link and observe differences between series.

Current Behavior

Order of timestamps in serie.data array reverse the step option behaviour from end to start and vice versa on time axis. Timestamp order should not have affect to this because order of the data point is always from first to last.

Expected Behavior

Order of datapoints should not affect rendering of stepped lines.

Workaround for this is obvious: reverse the serie.data array.

Environment

- OS: Windows 10
- Browser: Firefox 133
- Framework: none

Any additional comments?

Version 4.7.0 is also affected by this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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