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>
<button onclick="updateData()">
Update data
</button>
<div id="pivotContainer"></div>
JavaScript
var pivot = new Flexmonster({
container: "pivotContainer",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
dataSource: {
type: "json",
filename: "https://cdn.flexmonster.com/data/data.json",
mapping: "https://www.flexmonster.com/fm_uploads/2020/10/mapping.json"
}
}
});
function updateData() {
pivot.updateData({
type: "json",
filename: `https://cdn.flexmonster.com/data/data.json?${new Date().getTime()}`,
mapping: "https://www.flexmonster.com/fm_uploads/2020/10/mapping.json"
});
}