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/2.8.1/flexmonster.js"></script>
<div id="pivotContainer"></div>
JavaScript
let pivot = new Flexmonster({
container: "pivotContainer",
componentFolder: "https://cdn.flexmonster.com/2.8.0/",
licenseFilePath: "https://cdn.flexmonster.com/jsfiddle.charts.key",
toolbar: true,
report: {
dataSource: {
filename: "https://cdn.flexmonster.com/data/retail-data.json",
mapping: {
Date: {
type: "date string",
format: "yyyy-MM-dd"
}
}
}
}
});
flexmonster.on("reportcomplete", () => {
flexmonster.openFilter("Date");
});