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">The component will appear here</div>
JavaScript
var jsonData = [{
Region: {
"type": "string"
},
Minutes: {
"type": "string"
},
Seconds: {
"type": "time"
}
},
{
Region: "Europe",
Minutes: "15.31",
Seconds: "155860"
},
{
Region: "Africa",
Minutes: "02.55",
Seconds: "100000"
},
{
Region: "Asia",
Minutes: "18.08",
Seconds: "65280"
}
];
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
dataSource: {
data: jsonData
},
slice: {
rows: [{
uniqueName: "Region"
}],
measures: [{
uniqueName: "Seconds"
}]
},
options: {
timePattern: "HHH:mm:ss"
}
}
});