Skip to content

Some hovertexts show only one character #1080

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

Closed
brainprint opened this issue Jul 23, 2017 · 2 comments
Closed

Some hovertexts show only one character #1080

brainprint opened this issue Jul 23, 2017 · 2 comments

Comments

@brainprint
Copy link

brainprint commented Jul 23, 2017

Hi,

I have created a 3D chart, using R, but some hovertexts show only one character, but the majority is correct (6 full lines with the correct text).

nullLabel <- list(title = "", showticklabels = FALSE)

p <- plot_ly(data = testDF, x = ~fromDF, y = ~toDF, z = ~dateDF, color = ~threadDF, colors = rainbow(length(unique(testDF$threadDF))), size = ~attDF, marker = list(symbol = "circle", sizemode = "diameter", showscale = FALSE), sizes = c(10, 50), hoverinfo = "text", text = ~paste0("From: ", fromDF, "\nTo: ", toDF, "\ncc: ", ccDF, "\nSubject: ", subjectDF, "\nDate: ", dateDF, "\nAttachments: ", attDF)) %>% layout(showlegend = FALSE, title = "Some Title", scene = list(xaxis = nullLabel, yaxis = nullLabel, zaxis = nullLabel)) %>% add_markers()
print(p)

And here an example of a wrong hovertext. The text inside the data frame is correct.

https://cdn-standard.discourse.org/uploads/plot/original/2X/9/95cc4fe92b6c30cedcaa4088b8c6a80fbb005033.jpg

I am aware that before it was common to use “<\br>” but it doesn’t work anymore. Instead I have to use “\n”.

I am using macOS 10.12.5, RStudio (but same result using pure R), R Version 3.4.1 and plotly package 4.7.0.9000.

Any help would be appreciated. Thank you.

@brainprint
Copy link
Author

Hoping it could help, I am attaching the RData file with the testDF object.
testDF.RData.zip

@cpsievert
Copy link
Collaborator

Duplicate of #1125

@cpsievert cpsievert marked this as a duplicate of #1125 Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants