Skip to content

c3 height issue #14

@thomasthomasth

Description

@thomasthomasth

Hi,

When some c3 visualisation is inserted into a shiny page, the height parameter does not seem to work.

I am not sure if its related to this issue but it is slightly difficult to use it right now in large Shiny Applications.

Here is a working minimal example:

library(shiny)
library(shinydashboard)

data <- data.frame(a = c(1,2,3,2), b = c(2,3,1,5))

shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
tags$head(tags$style("#plot1{height:100vh !important;}")),
tags$head(tags$style("#plot2{height:100vh !important;}")),
fluidRow(
column(6,c3Output("plot1", "100%", "100%")),
column(6,plotOutput("plot2", "100%", "100%"))

)

        )

),
server = function(input, output) {

output$plot1 <- renderC3({
data %>%
  c3()
})

output$plot2 <- renderPlot({
  plot(data)
})

}
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions