question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support datetime formatting in bokeh hover tools

See original GitHub issue

Here is what I have right now (installed all the packages for Python 3.6.1 a minute ago): image

Please note that axis is rendered properly - it’s just a hover tool who is missing the right rendering.

P.S. It’s pretty typical last mile issue with holoviews: when you get your plot defined properly up to 95% but the last 5% makes you drop it and move to native bokeh, matplotlib struggling.

Thanks in Advance!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (16 by maintainers)

github_iconTop GitHub Comments

4reactions
philippjfrcommented, Mar 23, 2020

@BenPortner That is not a HoloViews issue, the correct definition for date formatting would be:

fig = (tiles * points.opts(tools=[HoverTool(tooltips=[('date', '@{date}{%F}')], formatters={'@{date}': 'datetime'})]))
1reaction
ludwigVonKoopacommented, Aug 25, 2021

Hi @MarcSkovMadsen

I already have created an issue describing this problem (see #4974) but i’ll edit it to make it simplier and easier to reproduce.

Thanks to your feedback

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python: Bokeh hover date time - Stack Overflow
A datetime field can be formatted as a datetime directly by the hover tool, by specifying a formatter, e.g.: HoverTool(tooltips=[('date' ...
Read more >
HoverTool does not display datetime · Issue #8658 · bokeh ...
It looks like datetime is first correctly transformed to a unix timestamp, but is then displayed in bytes format instead of datetime. Using...
Read more >
Datetime Formatting in HoverTool - Bokeh Discourse
The problem is that rather than showing a formatted date the hover tool displays numbers like 1.459e12 which is pretty uninformative. Is there...
Read more >
bokeh-datetime-hover - | notebook.community
from datetime import datetime, timedelta from bokeh.plotting import figure, show from bokeh.models import HoverTool import pandas as pd import numpy as np ...
Read more >
Xarray datetime hover tooltip - HoloViews - HoloViz Discourse
but I am not able to find the right way to format the hover tooltip for the time dimension. What I got so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found