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: {
"dataSource": {
"dataSourceType": "json",
"data": [
{
"Gender": {
},
"MaritalStatus": {},
"Count": {
}
},
[
"NoMatch",
"NoMatch",
0
],
[
"NoMatch",
"Divorced",
0
],
[
"NoMatch",
"Married",
0
],
[
"NoMatch",
"Remarried",
0
],
[
"NoMatch",
"Single",
0
],
[
"NoMatch",
"Unknown",
0
],
[
"NoMatch",
"Widowed",
0
],
[
"Female",
"NoMatch",
0
],
[
"Female",
"Divorced",
6415
],
[
"Female",
"Married",
10158
],
[
"Female",
"Remarried",
6355
],
[
"Female",
"Single",
20238
],
[
"Female",
"Unknown",
1809
],
[
"Female",
"Widowed",
893
],
[
"Male",
"NoMatch",
0
],
[
"Male",
"Divorced",
7625
],
[
"Male",
"Married",
11914
],
[
"Male",
"Remarried",
7508
],
[
"Male",
"Single",
23562
],
[
"Male",
"Unknown",
2153
],
[
"Male",
"Widowed",
1096
],
[
"Unknown",
"NoMatch",
0
],
[
"Unknown",
"Divorced",
36
],
[
"Unknown",
"Married",
65
],
[
"Unknown",
"Remarried",
...