I am using set_options(width = "auto", height = "auto", resizable=FALSE)
to auto-size a ggvis chart. It works fine when the chart is the only element in the column
function, but if I add other elements, the chart keeps resizing to the infinite.
I know html has a max-height
attribute that probably would prevent this behavior, but this attribute is not available in ggivs.
Here is my example:
ui.R
library(shiny)
library(ggvis)
shinyUI(fluidPage(
fluidRow(titlePanel("Old Faithful Geyser Data")),
fluidRow(
column(12,
tags$h1("hello"),
ggvisOutput('test1')
)
)
)
)
server.R
library(shiny)
library(ggvis)
shinyServer(function(input, output) {
cars %>%
ggvis(~speed) %>%
layer_bars() %>%
set_options(width="auto", height= "auto", resizable=FALSE) %>%
bind_shiny("test1", "test1_ui")
})
I am using firefox 47.0