Last active
December 22, 2015 20:19
-
-
Save stla/6525799 to your computer and use it in GitHub Desktop.
Datatable with a plot - strange scroll bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| }) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') | |
| ))) | |
| )) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not able to reproduce the "bug"... and this bug solved with a div environment