-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Relative date on x-axis #1744
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
That's an interesting proposition. I've never came across a special relative time format in other graphing library. @Romainpetit Does that exist anywhere else? In your case (in JS at least), it would be pretty easy to convert your |
I don't know a graphing library that offers such a relative time in its options @etpinard. Now with this relative timing in ms,
Other option seems to be to dig in the |
You can also try |
This ticket won't directly result in a PR, so I'll close it. Thanks for writing in @Romainpetit |
Problem
I'm using plotly to display timed data, but here the exact date is of no importance, only the relative time between the values is. I'm wondering if there is any existing setting about this.
For the moment, I get this result with


tickmode: 'auto', type: 'date'
Wish


I'd like to set my first point as the zero, and then have all other times relative to it.
The tick would display the time relatively to this first date :
Since I'll be displaying various data of different time scales,
tickformat
is of little help. I'd need an automatic date formatter with customizable format settings.This is related to this debate on the pertinence of this automatic date format: #99
Any help appreciated!
The text was updated successfully, but these errors were encountered: