Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHLC hover text date format bug #1487

Closed
im-keiran opened this issue Feb 5, 2025 · 1 comment · Fixed by #1493
Closed

OHLC hover text date format bug #1487

im-keiran opened this issue Feb 5, 2025 · 1 comment · Fixed by #1493
Labels
type: bug Something isn't working
Milestone

Comments

@im-keiran
Copy link

Software Version Info
python 3.12.8
bokeh 3.6.2
holoviews 1.20.0

Description of expected behavior and the observed behavior

The tooltip/hover text in ohlc plots does not recognise datetime formats, shows a long integer instead. See screenshot below of hvplot reference gallery example.

Complete, minimal, self-contained example code that reproduces the issue

https://hvplot.holoviz.org/reference/tabular/ohlc.html

Screenshots or screencasts of the bug in action

Image

@hoxbro
Copy link
Member

hoxbro commented Feb 5, 2025

We likely need some logic around HoverTool's formatter around here:

hvplot/hvplot/converter.py

Lines 2632 to 2642 in d2bce93

if 'hover' in tools:
tools[tools.index('hover')] = HoverTool(
tooltips=[
(x, f'@{x}'),
('Open', f'@{o}'),
('High', f'@{h}'),
('Low', f'@{l}'),
('Close', f'@{c}'),
]
+ [(hc, f'@{hc}') for hc in vdims[4:]]
)

@hoxbro hoxbro added the type: bug Something isn't working label Feb 5, 2025
@maximlt maximlt added this to the v0.11.3 milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants