Skip to content

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

Closed
plotly/plotly.js
#3207

Description

@kendonB
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

Activity

  1. cpsievert commented on Oct 31, 2018

    @cpsievert
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions