Skip to content

Shiny nivocal not rendering #20

@timelyportfolio

Description

@timelyportfolio

@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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions