JSFiddle - React, Tailwind, and code Playground
by Flexmonster Pivot Table
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
JavaScript
new Flexmonster({
container: "#pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 600,
toolbar: true,
report: {
"dataSource": {
"type": "elasticsearch",
"host": "https://search-flexmonster-test-nnueqf3mwguko4yj2g3v2fkxgu.eu-central-1.es.amazonaws.com",
"index": "sourcedeclarations",
"mapping": {
"@timestamp": {
"visible": false
}
}
},
options: {
grid: {
type: "compact",
showTotals: 'off'
},
caseSensitiveMembers: true
},
"slice": {
"rows": [{
"uniqueName": "f_employee_f.keyword"
}, {
"uniqueName": "f_project_f.keyword"
}, {
"uniqueName": "f_activity_f.keyword"
}, {
"uniqueName": "f_declinfo_f.keyword"
}],
"columns": [{
"uniqueName": "f_decldate_f"
}, {
"uniqueName": "[Measures]"
}],
"measures": [{
"uniqueName": "f_decltime_f",
"aggregation": "sum"
}],
"expands": {
"expandAll": true
},
"drills": {
"drillAll": true
}
}
}
});