daattali / timevis

📅 Create interactive timeline visualizations in R
http://daattali.com/shiny/timevis-demo/
Other
653 stars 157 forks source link

When re-rendering a timeline, the old data are not removed #3

Closed daattali closed 8 years ago

daattali commented 8 years ago

Bug reported to me via private email.

Example:

library(shiny)
library(timevis)

ui <- fluidPage(
  timevisOutput("timeline"),
  textInput("text", "Text", "Hello")
)

server <- function(input, output, session) {
  output$timeline <- renderTimevis(
    timevis(data.frame(start = Sys.Date(), content = input$text))
  )
}

shinyApp(ui = ui, server = server)

Every time you change the text, a new item gets added but all the previous ones still exist. That's a clear bug and not how it should work.

hemans commented 7 years ago

I recently installed timevis but face the same problem though it states as solved and closed? Would appreciate the help to fix it.

Thanks

daattali commented 7 years ago

Did you install from CRAN or github? The CRAN version isn't updated.

hemans commented 7 years ago

Thanks for the response. I reinstalled from github and its working fine.

Thanks