Comments (4)
On this note, I've been digging into the underlying package, and this appears to be the base CSS, those !important tags are going to make it somewhat rough to restyle here right?:
.table {font-family: Helvetica;}
.node {
border: solid 1px white;
font: 9px tahoma;
line-height: 10px;
overflow: hidden;
text-indent: 2px;
position : absolute;
}
.c3-line, .c3-focused {stroke-width: 3px !important;}
.c3-bar {stroke: white !important; stroke-width: 1;}
.c3 text { font-size: 12px; color: grey;}
.tick line {stroke: white;}
.c3-axis path {stroke: grey;}
.c3-circle { opacity: 1 ! important;}
.pvtRows, .pvtCols {background: #54B4EB none repeat scroll 0 0;}
.pvtFilteredAttribute { font-weight: bold;}
is there any way to have this as the default CSS as a setting on the rpivotTable function in a way that it could be changed?
from rpivottable.
Actually that is not correct (if only!). The css
code reported above is only for the C3
renderer used for the C3
treemap and it is in rpivotTable.css
.
The actual css
code is more complex and is in pivot.min.css
.
Part of the problem @aruberutou is encountering is that the basic renderers of rpivotTable (pivottable.js) are dynamic. Suppose you are slicing data by a time dimension with months. Then you add days. Suddenly you go from 12 to 365 elements either on rows or columns.
This is why this widget cannot be easily fixed (it would mean add the ability to scroll within a pre-defined window, at the moment absent in the current renderers).
There is an additional renderer recently added to the family: NovixPivotJS.
The demo on the github page shows h. / v. scroll bars. It should be easy to add this renderer.
Probably adding a parameter as I don't think it co-exists with the other renderers: for example, today the C3
renderer (the treemap) and the D3
renderer (e.g. the scatterplot) coexist in the the same pull down menu on the pivottable.
NovixPivotJS
is based on handsontable.js
library and allows also write back, but for R it may be a complex feature to add, as the rhandsontable project is showing.
I will give a closer look at NovixPivotJS
, but I welcome a PR is anybody is willing.
from rpivottable.
Wow. Thanks for the comments. Hadn't realised it was all so complex.
Happy to put in the leg work, to make it happen. Any tips?
On 28 Sep 2016 5:39 a.m., "Enzo" [email protected] wrote:
Actually that is not correct (if only!). The css code reported above is
only for the C3 renderer used for the C3 treemap and it is in
rpivotTable.css.The actual css code is more complex and is in pivot.min.css.
Part of the problem @aruberutou https://github.com/aruberutou is
encountering is that the basic renderers of rpivotTable (pivottable.js) are
dynamic. Suppose you are slicing data by a time dimension with months. Then
you add days. Suddenly you go from 12 to 365 elements either on rows or
columns.
This is why this widget cannot be easily fixed (it would mean add the
ability to scroll within a pre-defined window, at the moment absent in the
current renderers).There is an additional renderer recently added to the family: NovixPivotJS
https://github.com/fbrussa/NovixPivotJS.The demo on the github page shows h. / v. scroll bars. It should be easy
to add this renderer.Probably adding a parameter as I don't think it co-exists with the other
renderers: for example, today the C3 renderer (the treemap) and the D3
renderer (e.g. the scatterplot) coexist in the the same pull down menu on
the pivottable.NovixPivotJS is based on handsontable.js library and allows also write
back, but for R it may be a complex feature to add, as the rhandsontable
project is showing.I will give a closer look at NovixPivotJS, but I welcome PR is anybody is
willing.โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#59 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARyU4VhGC4vpAfeexMUOXayQhBL_S8fiks5quX8TgaJpZM4KHXCj
.
from rpivottable.
Sadly NovixPivotJS
, which I was thinking at as a possible solution, is based on highchart
, which I thought was open source but it is a paying for graphic library.
from rpivottable.
Related Issues (20)
- 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
- Is this Package still being maintained?
- How to Make rpivottable Work in Jupyter Notebook? HOT 1
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.