Time series labels are usually not the easiest to read, because plotting software treats dates as instant in time.
Is there a way to label time series ticks to show the time period rather than a point in time?
The x tick labels are centred on the start of the month. When I go to look at a time series I want to know what time period it happened in, not what the start date of that period was. Surely everyone would rather see this x tick labelling;
Again, surely this is easier to read at a glance what time period something happened in rather than what the precise start date of that time period was?
You could take that logic and apply it to years in a decade, or days in a month (or hours in a day) and so on.
I canโt be the only one that finds the standard way of plotting time series non-intuitive and would rather see it the alternative way?
How could I go about implementing a change so all users could use this option?
Date axis tick labels have the special property that any portion after the first instance of โ\nโ in tickformat will appear on a second line only once per unique value, as with the year numbers in the example below. To have the year number appear on every tick label, '<br>' should be used instead of โ\nโ.
Indeed I didnโt find a way to display labels on minor ticks
I ran some tests using this example, it seems that they donโt play well together
Anyway, it seems it is not possible to define custom tick periods depending on the zoom level. tickformatstops only allows to define only labels format depending on the zoom level
Maybe the solution can be to create a kind of custom tickformatstops using Dash and Graph prop relayoutData as input of a callback, which is triggered with zoom/pan. See exemple here