-
-
Notifications
You must be signed in to change notification settings - Fork 22
Conditional date formatting in time axis #85
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
Hey Sebastian! |
Done :-) Thx again for fixing the title formatting. Sebastian |
If you want to give it a try yourself, you can find a good template and other props from here https://plotly.com/javascript/reference/#layout-xaxis-tickformat |
I investigated a bit and now think this won't work.
The downside of implementing the algorithm from scratch is that it will limit how configurable things are. Also, I think it is not a trivial task (except if one finds a good library, potentially a d3 formatter)
|
Here's an example using tickformatstops, but there seems to be no way to make it show the (for example) year in the tick where it changes, while only showing the month in subsequent ones |
@dbuezas How did you format the yaml for tickformatstops? I've tried to use the example you posted but cannot seem to get any tickformatstops to work. |
At the moment it can't be done with yaml alone. Soon it will be possible, once #130 is finished. |
I gave up on this. I'll close it, but feel free to open it again if you have any new implementation idea :) |
Hi,
Could the date be shown in the time axis as the normal historiy graph?

In the history graph the date is shown instead of "00:00" which is kind of nice as it saves one line.
Thx for your great work,
Sebastian
The text was updated successfully, but these errors were encountered: