-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow setting 'hoverformat' for z-values in heatmap #1383
Comments
That would be nice. Thanks for posting! |
Analogous capabilities to what @jdugge suggests for heatmap plots would be terrific for the 'intensity' attribute used in mesh3d plots and the 'surfacecolor' attribute in 'surface' plots. |
I'd be happy to take a shot at implementing this, but I'm not quite sure what the best place for the format option would be. I see three possible places:
Any thoughts? |
Any of the the three methods would be great but it seems to me that the easiest to understand place for most people would probably be option 3 given that this indeed is where other configuration options are defined for the display of the associated data. |
Thanks for looking into this @jdugge ! I'd vote for 3). I'm not a fan of the Perhaps we should add a |
Review of @jdugge prelim PR: jdugge#1 (review) |
closed by #2106 |
I would like to round the z-values shown when hovering over a heatmap. I tried setting
zaxis: { hoverformat: '.2f'}
, but unfortunately this has no effect in a heatmap plot.Would it be possible to add a way for setting the
hoverformat
for z-values in heatmap plots? Maybe such an option already exists, and I just haven't found it?Fiddle: https://jsfiddle.net/7rdcm0rg/3/
The text was updated successfully, but these errors were encountered: