How can I automatically resize the rChart graph? I would like to fit the plot to the user's screen, as is done for regular plots using renderPlot. Here is a minimal example:
#Server.R require(rCharts) shinyServer(function(input, output) { output$chart1 <- renderChart2({ r1 <- rPlot(mpg ~ wt | am + vs, data = mtcars, type = "point", color = "gear") return(r1) }) })
I tried adding:
w <- session$clientData$output_chart1_width r1$set(width = w)
but that will not work.
source share