✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

Month-year hover labels in time series

Hi.

I’m using the offline version of plotly for python.
I have a dataset monthly sampled. I already have the timeseries plotted with plotly, but it also shows the day of month for every point. I can work around a display the data like it was for the 1st of each month, so it matches the (automatically printed by plotly) vertical lines that represents each month.
However, on hover it’d keep displaying the day of the month and I just want to display the month and the year. I’m looking for an easy (automatic) way to do this. For plotly Cloud I have seen that it allows you to set a hover format like “%b %Y”, and plotly takes care of everything.

Is there an easy way like this for Python plotly (and, subsequently for Dash)? or the only way is to manually generate the corresponding hover text?