Manipulate box that displays on mouse hover #1718
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hmm, I don't believe it's possible at the moment. With NeXus, you can declare auxiliary signals (cf. I guess what you want is the same behaviour as with the Line visualization, where the tooltip does show auxiliary values: We haven't done this for the Heatmap because it seemed a bit wasteful and potentially slow with some providers to fetch all the signals just to show their values in the tootlip. On the Line visualization, the signals are actually displayed on the plot, so it made more sense. We could revisit this decision, though. |
Beta Was this translation helpful? Give feedback.
-
I understand. Since this extra value depends only on x and y, wouldn't it be reasonable for me to just add a function to the Tooltip rendering file and run the build again? I tried a lot to search the imports, and I think the file I'm looking for is If you have any other suggestions on how to work around this, I would really appreciate as well. |
Beta Was this translation helpful? Give feedback.
I have to start with the disclaimer that H5Web is meant to be consumed through the
@h5web/app
and@h5web/lib
NPM packages. Copying or forking the codebase is not a great idea, as at some point, some of our changes will necessarily conflict with your own changes, which will make it hard for you to keep your copy/fork up to date.The
HeatmapVis
component in the@h5web/lib
package (packages/lib/src/vis/heatmap/HeatmapVis.tsx
) does provide the feature you're looking for. Ideally, you would want to install@h5web/lib
in your app and importHeatmapVis
from it; then you would render your own heatmap using therenderTooltip
prop in order to render a custom tooltip.That being said, from your scre…