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="pivot-container"></div>
JavaScript
let pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
"dataSource": {
"type": "json",
"data": [{
"Category": "Accessories",
"Color": "green",
"Quantity": -1e+20
}]
},
"slice": {
"rows": [{
"uniqueName": "Category"
}],
"columns": [{
"uniqueName": "[Measures]"
}],
"measures": [{
"uniqueName": "Quantity",
"aggregation": "sum",
"format": "-caoeubjj6wj0"
}]
},
"formats": [{
"name": "-caoeubjj6wj0",
"decimalPlaces": 0,
"currencySymbol": "$"
}],
"version": "2.9.40",
"creationDate": "2022-12-16T08:22:17.760Z"
}
});