Skip to content

3D axis cannot be reversed #1095

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
ajing opened this issue Aug 4, 2017 · 4 comments
Closed

3D axis cannot be reversed #1095

ajing opened this issue Aug 4, 2017 · 4 comments

Comments

@ajing
Copy link

ajing commented Aug 4, 2017

Cannot reverse 3D axis

library(plotly)
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', autorange = "reversed"),
    yaxis = list(title = 'Gross horsepower'),
    zaxis = list(title = '1/4 mile time')))
p
@ajing ajing changed the title 3D axis cannot reverse 3D axis cannot be reversed Aug 7, 2017
@cpsievert
Copy link
Collaborator

Thanks, I think this is a plotly.js bug

@ajing
Copy link
Author

ajing commented Aug 8, 2017

Is there a simple way that I can hack the code to solve this?

@cpsievert
Copy link
Collaborator

No, it will require a fix at the plotly.js level plotly/plotly.js#1940

@cpsievert
Copy link
Collaborator

This appears to be fixed now

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

No branches or pull requests

2 participants