Comments (7)
just read through all the other comments, this doesn't work with box() in shinydashboard - that was my problem.
from rpivottable.
@KatRisk Interestingly I'm having problems in sizing a shinydashboard box with another widget, rhandsontable.
The only way to work properly is to set box height
and width
. Set up scrolling is (almost) mandatory, as depending on the analysis you could have loads of columns to appear in a dynamic, unpredictable fashion.
See the example below (and my apologies for not understanding your issue sooner!):
library(shiny)
library(shinydashboard)
library(rpivotTable)
library(ggplot2)
data(diamonds)
header <- dashboardHeader(title = "Test")
sidebar <- dashboardSidebar()
body <- dashboardBody(
box(title = "Pivot",width=8, height= 20, status = "primary", solidHeader = TRUE,
tags$head(tags$style( type = 'text/css', '#test{ overflow-x: scroll; }')),
rpivotTableOutput("test")
))
shinyApp(
ui = dashboardPage(
header, sidebar, body),
server = function(input, output) {
output$test <- rpivotTable::renderRpivotTable({
rpivotTable(data = diamonds)
})
}
)
from rpivottable.
Is there a good way to enclose an rpivotTable
widget in a DIV
or other element that will resize with the widget? Otherwise, my first rpivotTable
(in an .Rmd
document) will generally overlap the next one, making it unreadable. :-/
Maybe there is, or could be, some sort of provision for a callback that will fire when the rpivotTable
widget resizes?
from rpivottable.
@holstius Frankly I do not see a solution for this.
As with any respectable pivot table, it is impossible to predict how many rows or columns an analysis will require. It is now very possible to have say >100 columns if your categorical variable it is so designed.
How would a similar resize would look like? Probably smaller than a stamp...
This is why in my modest opinion the best solution is to use scrolling wherever possible.
from rpivottable.
If I look at the HTML, after it's done rendering, there's a "width" and "height" in the CSS attributes of the container. Something is calculating those once. Couldn't it calculate them again?
On Aug 31, 2015, at 9:56 AM, Enzo [email protected] wrote:
@holstius Frankly I do not see a solution for this.
As with any respectable pivot table, it is impossible to predict how many rows or columns an analysis will require. It is now very possible to have say >100 columns if your categorical variable it is so designed.
How would a similar resize would look like? Probably smaller than a stamp...
This is why in my modest opinion the best solution is to use scrolling wherever possible.
โ
Reply to this email directly or view it on GitHub.
from rpivottable.
Hello and first of all, thank you for this great package.
I came across a similar issue using rpivotTable
inside flexdashboard
. After some failures I found out how to implement the same principle in flexdashboard
. Here is my solution, thought might be helpful for someone. Just add this chunk at the beginning of your markdown:
'''{css, echo=FALSE}
.rpivotTable{ overflow-x: scroll; }
'''
from rpivottable.
thank you so much!
from rpivottable.
Related Issues (20)
- Provide option to escape html HOT 3
- pivottable does not work with login/logout module HOT 7
- Using pivotTable from static html HOT 1
- factor levels order is not retained HOT 7
- aggregate name: identity HOT 7
- reduce area of metadata in output table HOT 3
- append style to rpivotTable css styles HOT 2
- Easier extendibility of rpivotTable() for custom S3 classes
- Support Excel Date Slice๏ผ HOT 1
- rpivotTable doesn't display anything HOT 1
- Question: Is there a way to sort table by values displayed in current column selection?
- My question is, How to colorize "Heatmap", creating a function with "ifelse ()"?????
- Plotting multiple rpivotTable with for loop in html r-markdown
- Compatibility with Bootstrap 4? HOT 1
- Top row missing (where remaining pivot variables sit)
- Drop down arrows problem with crosstalk v.1.1.1.
- rpivotTable is not working together with shinyjqui
- Drop down lists open in wrong position HOT 9
- Can't sort the Total column in the Pivot Table
- Sort rows in locale with characters not found in English
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpivottable.