plotly / dash-pivottable

react-pivottable in Dash
MIT License
192 stars 52 forks source link

Styling Dash Pivottable #36

Open benjamincottam opened 3 years ago

benjamincottam commented 3 years ago

I am implementing the Dash Pivottable as part of a larger dashboard but would like to see the ability to define or change the default colors and overall styling. Additionally, is the text that appears at the bottom of the of the pivot table essential? I would like this to be hidden if possible. I apologize if this is the wrong forum for this type of request.

xhluca commented 3 years ago

For the CSS, you can modify the pivottable.css file from react-pivottable, and when you are happy you can place it inside the assets folder of your app.

Alternatively you can also fork this repo and create your own version of dash-pivottable by changing the path to the css file (see CONTRIBUTING.md FAQ) but that would be a permanent change.

The text at the bottom was added for learning purposes in the usage.py. You can remove the callback and the html.Div that stores it the text.