Stream: helpdesk (published)

Topic: plotly interactive hover date formatting issue


view this post on Zulip Sergey Kurochkin (Apr 06 2021 at 11:15):

Hi! I'm constructing a simple plot using plots.jl with plotly backend:
image.png
There's a black text hover thingy close to the axis that says 63.74713T which i expected to say 2021-01-24T00:00:00, or just 2021-01-24

The dataset consists of final_date which is a vector of Dates.DateTimes and a which is a vector of floats.

Converting the DateTimes to Dates still produces an incorrect format, albeit a different one:
image2.png

I did not manage to pass different plotly hovermode arguments to plot(). I've also tried to customize the label itself with a hover argument, but it doesn't seem to follow the javascript convention either.
image3.png

What options are there to get a correct value of x axis on hovering over a sample?

view this post on Zulip Sergey Kurochkin (Apr 06 2021 at 15:32):

Got a workaround by passing manually built labels for the main hover thingy
image.png


Last updated: Nov 06 2024 at 04:40 UTC