-
Notifications
You must be signed in to change notification settings - Fork 633
Hover text showing only first letter #1125
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
Comments
Managed to solve the issue by wrapping the value of |
Hi Tuomastik, did you have any other insight into this problem? I have exactly the same problem, but listing the attributes only made it worse. |
@drowsygoat Unfortunately no. I can only suggest comparing your implementation to the code snippet (and its solution) provided in my first comment. |
I have run into the same problem. Instead of my custom hover text some points show "<" instead of the message. Putting the code inside a list() results in correct hover texts for the points that showed "<" before, but NO hover text for all other points. |
Additional info on this bug: If I run the plot on my full 100.000 data set, NO PROBLEM, as soon as I do any form of subsetting, varying from dfx[1:1000, ], dfx[listofrandomrownumbers, ] or grabbing 10% per category in a for loop, or running a dplyr arrange solution to subset, they all result in the same bug. I also noticed that if i just plot 1 point, and it has the buggy hover, that rotating the camera view fixes it, |
Same issue here, but the list() solution doesnt work |
I believe plot_ly(mtcars, x = ~wt, y = ~hp, z = ~qsec,
color = as.factor(rownames(mtcars)),
colors = grDevices::heat.colors(nrow(mtcars)),
hoverinfo = "text",
text = I(rownames(mtcars))) %>% add_markers() |
A proper fix for this will likely have to come from plotly.js -- I've started an issue here -- plotly/plotly.js#2693 |
list worked for me, =D hoverinfo = "text", text = list(size_cluster$sizesc) |
This issue appears to be fixed now. |
Hover tooltip shows only first letter when
color
andcolors
parameters are provided. Withoutcolor
andcolors
parameters, the text is shown correctly.The code above produces the following figure:

The following figure is produced without

color
andcolors
parameters:The text was updated successfully, but these errors were encountered: