JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
CSS
.fm-cell {
white-space: pre-wrap !important;
}
#fm-pivot-view .fm-grid-row,
#fm-pivot-view .fm-grid-row-mobile {
height: auto !important;
/* min-height: 40px; */
}
/* .fm-filter-header {
height: auto;
} */
.fm-cell {
font-size: 11px !important;
}
#fm-pivot-view .fm-grid-layout #fm-data-sheet .fm-cell,
#fm-pivot-view .fm-grid-layout .fm-cell.fm-v-sort,
#fm-pivot-view .fm-grid-layout .fm-cell.fm-h-sort {
padding-top: 5px !important;
}
JavaScript
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
dataSource: {
filename: "data/data.csv"
},
slice: {
rows: [
{ uniqueName: "Color" },
{ uniqueName: "[Measures]" }
],
columns: [
{ uniqueName: "Country" }
],
measures: [
{ uniqueName: "Price", aggregation: "sum" }
]
}
}
});