Can anyone please please tell me how to get a nice date time format in Hovertool.
I have a plot with beautifully formatted datetime on the x axis, but in the Hovertool the timestamp just comes up as a unix Epoch time, and I cannot find out how to format it.
It’s adding a new column to the ColumnDataSource called ‘event_date_formatted’ which is a string representation of df[‘event_date’], then uses that as a field in the tooltip. Here df is a Pandas DataFrame. You could achieve the same with a list and a map function.
Can anyone please please tell me how to get a nice date time format in Hovertool.
I have a plot with beautifully formatted datetime on the x axis, but in the Hovertool the timestamp just comes up as a unix Epoch time, and I cannot find out how to format it.
Would be so grateful for advice
Cathy
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
It’s adding a new column to the ColumnDataSource called ‘event_date_formatted’ which is a string representation of df[‘event_date’], then uses that as a field in the tooltip. Here df is a Pandas DataFrame. You could achieve the same with a list and a map function.
Can anyone please please tell me how to get a nice date time format in Hovertool.
I have a plot with beautifully formatted datetime on the x axis, but in the Hovertool the timestamp just comes up as a unix Epoch time, and I cannot find out how to format it.
Would be so grateful for advice
Cathy
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].