-
Notifications
You must be signed in to change notification settings - Fork 328
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
No tool tips for Histogram with time x_scale #1474
Comments
The problem lies in
and When However, in the second example there is no
Looking on the G2 examples and API I couldn't find a direct support for histogram ranged data. Probably we need to find a different way how to refactor data passed to chart. @lo5 you are an expert here. How do you think we should proceed? cc @mturoci |
@marek-mihok one way to fix this is providing our own string for the tooltip title instead of having it computed by G2. This can basically be any string since we overwrite the tooltip with our custom React component without a title anyway. Wdyt? Solution: chart.tooltip({
title: ' ', // HACK: Ignore tooltip title computation by G2 since we overwrite it anyway.
showCrosshairs: true,
crosshairs: { type: 'xy' },
...
)} |
Thanks @mturoci. That's a perfect idea! |
Wave SDK Version, OS
h2o_wave 0.22.0
Actual behavior
tool tip hover for linear scale
no tool tip hover for time scale ( I can make a gif as needed since it's not really showing that my curser is on the plot...)
Expected behavior
Tool tip to work for all scale times
Please note I did not test other x_scale types or other plot types with time scale
Steps To Reproduce
The text was updated successfully, but these errors were encountered: