JSFiddle - React, Tailwind, and code Playground
by Flexmonster Pivot Table
HTML
<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivotContainer"></div>
CSS
.underlined {
border-bottom: 1px solid black !important;
}
JavaScript
var pivot = new Flexmonster({
container: "pivotContainer",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
"dataSource": {
"filename": "data/data.csv"
},
"slice": {
"rows": [{
"uniqueName": "Country"
},
{
"uniqueName": "Category"
}
],
"columns": [{
"uniqueName": "[Measures]"
}],
"measures": [{
"uniqueName": "Price",
"aggregation": "sum"
}],
"expands": {
"rows": [{
"tuple": [
"country.[australia]"
]
},
{
"tuple": [
"country.[canada]"
]
}
]
}
},
"options": {
"grid": {
"type": "classic"
}
}
}
});
flexmonster.customizeCell((cell, data) => {
if(data.isClassicTotalRow) cell.addClass("underlined");
});