plotly.R icon indicating copy to clipboard operation
plotly.R copied to clipboard

Reversing Y Axis for Scatter Plot causes scale to disappear

Open mayankX opened this issue 9 years ago • 1 comments

screen shot 2017-08-18 at 1 17 38 pm

data_set %>% plot_ly(x = ~win_vi1_data.gx, y = ~win_vi1_data.gy, type="scattergl", mode = "markers",
                                          symbol= ~description, source = source_name
    ) %>% layout(
      # title = "Dye Error Code Heat Map",
      autosize = T,
      xaxis = list(
        title = "X axis"
      ),
      yaxis = list(
        title = "Y axis",
        autorange = "reversed"
      ),
      showlegend = TRUE
    )

Marking autorange = "reversed" causes y axis scale to disappear completely as shown in above screenshot. without reversed it appears like this

For Testing this code can be used as well

plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length, type="scattergl", mode = "markers")%>% layout(
      # title = "Dye Error Code Heat Map",
      autosize = T,
      xaxis = list(
        title = "X axis"
      ),
      yaxis = list(
        title = "Y axis",
        autorange = "reversed"
      ),
      showlegend = TRUE
    )
screen shot 2017-08-18 at 1 18 08 pm screen shot 2017-08-18 at 1 36 31 pm

mayankX avatar Aug 18 '17 07:08 mayankX

I believe this is now fixed

cpsievert avatar Jun 05 '18 19:06 cpsievert