-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
px.timeline chart incorrectly displays timeframes of 10 seconds and smaller. #2658
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
Comments
There is also a segment when the (end date is smaller than start + 1 second) and (end date is larger or equal than start - 0.001 seconds) where the chart does work as expected. |
Got the same issue with timeline here. The problem is when the timedelta is less than 10 seconds, although when x_start = x_end it works fine. |
Thanks for reporting this! It's indeed a bug in the underlying Javascript library, which we will fix: plotly/plotly.js#5057 |
Should be fixed in the next version of |
Fixed on master. |
@nicolaskruchten I'm not sure if this issue is entirely solved, could you please see whether #2518 is related? Thank you. |
@nicolaskruchten Can we use start and end to view information in nanoseconds ( or by passing an integer array ) ? Please help |
The following piece of python code that uses a ISO-formatted date string produces the graph below.
result
The snippet is similar to https://plotly.com/python/time-series/ from the plotly documentation.
The timescale is completely incorrect due to the finish attribute being incorrectly interpreted by plotly.
When changing the timestrings slightly you obtain the correct result:
correct result
Does anybody know why this happens and if there is a way around this?
I have also tried:
Both gave the same results
stackoverflow link
The text was updated successfully, but these errors were encountered: