-
-
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
Add (x|y|z)hoverformat to a number of cartesian and gl3d traces #5563
Conversation
Can I get a Pen for this please? |
|
Nice, this looks pretty much exactly like what we need :) |
val = ax.d2l(val); | ||
} | ||
|
||
return Axes.hoverLabelText(ax, val, hoverformat); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that Axes.hoverLabelText
was not used in gl3d
hover before. And for for log
axes it was needed to convert the value.
Co-authored-by: Alex Johnson <[email protected]>
@@ -388,7 +392,7 @@ proto.render = function() { | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right above here toPrecision(3)
is used for formatting norm
and divergence
instead of Axes.hoverLabelText
. Should we keep/change that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In principle yes but that's extremely low priority IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 Looks great, just the one final case that needs a noDates
Co-authored-by: Alex Johnson <[email protected]>
Addressing #5552 by adding
(x|y|z)hoverformat
to the following traces:scatter
,histogram
,bar
,box
,ohlc
,candlestick
,waterfall
,funnel
,violin
,contour
,heatmap
,histogram2d
,histogram2dcontour
,scattergl
,splom
,scatter3d
,mesh3d
,surface
,isosurface
,volume
,streamtube
andcone
.In addition, it is now possible to use
(u|v|w)hoverformat
incone
andstreamtube
.@plotly/plotly_js