Skip to content

Instantly share code, notes, and snippets.

@stla
Last active December 22, 2015 20:19
Show Gist options
  • Save stla/6525799 to your computer and use it in GitHub Desktop.
Save stla/6525799 to your computer and use it in GitHub Desktop.
Datatable with a plot - strange scroll bar
require(rCharts)
require(shiny)
require(data.table)
shinyServer(function(input, output, session){
output$myplot <- renderPlot({
gg <- ggplot(iris, aes(x=Sepal.Width, y=Sepal.Length)) + geom_point() + facet_grid(Species~.)
print(gg)
}, height=750)
output$mytable <- renderChart2({
dTable(iris, sPaginationType = input$pagination)
})
})
require(shiny)
require(rCharts)
shinyUI(pageWithSidebar(
headerPanel('DataTables in Shiny with rCharts'),
sidebarPanel(
selectInput('pagination', 'Choose Pagination',
c('two_button', 'full_numbers')
)
),
mainPanel(
tabsetPanel(
tabPanel("Data",
div(class="container-fluid", style="overflow:auto;height:800px;",
plotOutput('myplot')
),
br(),
h3("Data:"),
chartOutput('mytable', 'datatables')
)))
))
@stla
Copy link
Author

stla commented Sep 11, 2013

Not able to reproduce the "bug"... and this bug solved with a div environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment