-
-
Notifications
You must be signed in to change notification settings - Fork 1
Format hover_data
. Is this possible?
#115
Comments
hover_data
, potential to expose hovertemplate
.hover_data
. Possible?
hover_data
. Possible?hover_data
. Is this possible?
Your solution is probably what I would go with, to be honest. The way |
Okay thank you for your quick response! Are there plans to expose this when creating a plot? Eg.
Sidenote: Since discovering this plotting library, it's hard to go back to anything else! |
I'm glad you like it! The API you suggest above is pretty interesting, I'll think about it. The formatting strings would have to be D3.js-compatible rather than Python-compatible as the formatting happens in Javascript but other than that this seems like a nice extension. |
Will be completed in plotly/plotly.py#1774 |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I couldn't seem to find this in the docs. Is it possible to format
hover_data
as a string for display purposes only? My use case comes from displaying dollar amounts, but the original data isfloat.64
so hovering over a data point does not look appealing.My current fix requires an extra column to be added to a data frame, then that column is passed to the
hover_data
argument:However, this is not a great solution. My knowledge is pretty limited with
plotly
so there may be better solutions I haven't been able to find currently. Perhaps withhovertemplate
?Best,
Indiana
The text was updated successfully, but these errors were encountered: