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

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

Open
jsarem opened this issue Jan 7, 2025 · 0 comments
Open

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

jsarem opened this issue Jan 7, 2025 · 0 comments
Labels

Comments

@jsarem
Copy link

jsarem commented Jan 7, 2025

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.

@jsarem jsarem added the bug label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant