-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add (x|y|z)hoverformat to a number of cartesian and gl3d traces #5563
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
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 <johnson.alex.c@gmail.com>
| } | ||
| if(selection.textLabel) { | ||
| vectorTx.push(selection.textLabel); | ||
| } |
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
alexcjohnson
left a comment
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 <johnson.alex.c@gmail.com>
Addressing #5552 by adding
(x|y|z)hoverformatto the following traces:scatter,histogram,bar,box,ohlc,candlestick,waterfall,funnel,violin,contour,heatmap,histogram2d,histogram2dcontour,scattergl,splom,scatter3d,mesh3d,surface,isosurface,volume,streamtubeandcone.In addition, it is now possible to use
(u|v|w)hoverformatinconeandstreamtube.@plotly/plotly_js