We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I've discovered a very annoying bug that duplicates the traces on the 2nd replot. It doesn't happen on the cran version only on dev.
With cran version you get the correct number of traces on replot.
This duplication occurs in the dev version
Here is the code snippet in Shiny I was using to reproduce the bug
server = function(input, output) { # original plot output$plot1 <- renderPlotly({ p <- plot_ly(type = "scatter") %>% add_trace(p,x =c( 1, 2, 3 ),y =c(5, 6,7),mode = "lines", color="Original Trace 1") %>% add_trace(p,x =c( 2, 3, 4 ),y =c(7, 8,9),mode = "lines",color = "Original Trace2") %>% layout(title = "original Plot",showlegend = TRUE) }) # create new plot observeEvent(input$newplot,{ output$plot1 <- renderPlotly({ p <- plot_ly(type="scatter") %>% add_trace(p, x =c(1,2,3 ),y =c(5,6,7),mode = "lines",color = "New Trace1") %>% add_trace(p,x =c( 2,3,4),y =c(7,8,9),mode = "lines",color = "New Trace2") %>% layout(title = "New Plot",showlegend = TRUE) }) }) # clearplot observeEvent(input$clearplot,{ output$plot1 <- renderPlotly({ plotly_empty() }) }) } ui <- pageWithSidebar( headerPanel("Plotly version 4.5.6.9000 - bug (duplicate traces on replot)"), sidebarPanel( actionButton("newplot", "New plot"), actionButton("clearplot", "Clear plot") ), mainPanel( plotlyOutput("plot1", height = 500, width = 500) ) ) shinyApp(ui, server)
The text was updated successfully, but these errors were encountered:
+1 same issue with barplot
Sorry, something went wrong.
The duplication problem is reproducible on at least candle, area, bar, line, box, scatter ... i suspect it happens regardless of chart type.
2efa9d7
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
I've discovered a very annoying bug that duplicates the traces on the 2nd replot. It doesn't happen on the cran version only on dev.
With cran version you get the correct number of traces on replot.
This duplication occurs in the dev version
Here is the code snippet in Shiny I was using to reproduce the bug
The text was updated successfully, but these errors were encountered: