-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
@jienagu reported on Slack that a simple nivocal Shiny example does not work.
library(shiny)
library(nivocal)
ui <- nivocalOutput("nv", height = 200)
server <- function(input, output, session) {
output$nv <- renderNivocal({
# fake data of 500 records/days starting 2017-03-15
df <- data.frame(
day = seq.Date(
from = as.Date("2017-03-15"),
length.out = 500,
by = "days"
),
value = round(runif(500)*1000, 0)
)
nivocal(df)
})
}
shinyApp(ui, server)
Metadata
Metadata
Assignees
Labels
No labels