JSFiddle - React, Tailwind, and code Playground
HTML
<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/",
width: "100%",
height: 430,
toolbar: true,
report: {
"formats": [
{
"infinityValue": "Infinity",
"name": "amount",
"decimalSeparator": ".",
"currencySymbol": "",
"thousandsSeparator": ",",
"divideByZeroValue": "Infinity",
"currencySymbolAlign": "left",
"maxDecimalPlaces": -1,
"decimalPlaces": 2,
"isPercent": false,
"nullValue": "",
"textAlign": "right",
"maxSymbols": 20
}
],
"slice": {
"measures": [
{
"format": "amount",
"aggregation": "sum",
"uniqueName": "Amount",
"grandTotalCaption": "Amount"
}
],
"rows": [
{
"sort": "unsorted",
"uniqueName": "Name"
}
],
"expands": {
"expandAll": true
},
"columns": [
{
"uniqueName": "[Measures]"
}
]
},
"dataSource": {
"dataSourceType": "json",
"data": [
{
"Name": {
"type": "string"
},
"Amount": {
"type": "number"
}
},
{
"Name": "Row Data 11",
"Amount": 19500000
},
{
"Name": "Row Data 12",
"Amount": 78500000
},
{
"Name": "Row Data 13",
"Amount": 35000000
}
]
},
"options": {
"showAggregationLabels": false,
"grid": {
"showTotals": "off",
"showHeaders": false,
"type": "flat",
...