Git Product home page Git Product logo

Comments (4)

shapenaji avatar shapenaji commented on August 18, 2024

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.

smartinsightsfromdata avatar smartinsightsfromdata commented on August 18, 2024

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.

arupakaa avatar arupakaa commented on August 18, 2024

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.

smartinsightsfromdata avatar smartinsightsfromdata commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.