Skip to content
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

Line breaks in 3D plot titles do not work #1334

Closed
kendonB opened this issue Sep 10, 2018 · 1 comment · Fixed by plotly/plotly.js#3207
Closed

Line breaks in 3D plot titles do not work #1334

kendonB opened this issue Sep 10, 2018 · 1 comment · Fixed by plotly/plotly.js#3207

Comments

@kendonB
Copy link

kendonB commented Sep 10, 2018

library(plotly)
data(mtcars)
mtcars$am[which(mtcars$am == 0)] <- 'Automatic'
mtcars$am[which(mtcars$am == 1)] <- 'Manual'
mtcars$am <- as.factor(mtcars$am)

p <- plot_ly(mtcars, x = ~wt, y = ~hp, z = ~qsec, color = ~am, colors = c('#BF382A', '#0C4B8E')) %>%
  add_markers() %>%
  layout(scene = list(xaxis = list(title = 'Weight'),
                      yaxis = list(title = 'Gross horsepower\nthis title is<br>really long'),
                      zaxis = list(title = '1/4 mile time')))
p

tmp

@cpsievert
Copy link
Collaborator

I believe this is something that needs to be implemented on the plotly.js level, for progress track plotly/plotly.js#3196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants