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
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
dataSource: {
filename: "data/sales.csv"
},
slice: {
rows: [{
uniqueName: "Month"
}, ],
columns: [{
uniqueName: "Category",
}, {
uniqueName: "[Measures]"
}],
measures: [{
"uniqueName": "Revenue",
"aggregation": "sum"
}]
},
conditions: [{
formula: "#value >= 0",
format: {
backgroundColor: "#EF5350",
color: "#000000",
fontFamily: "Arial",
fontSize: "12px"
}
}],
formats: [{
name: "",
decimalPlaces: 2,
currencySymbol: "$"
}]
}
});