JSFiddle - React, Tailwind, and code Playground
by yahmed
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
JavaScript
var data = [
{
"MaritalStatus": {
"type": "string"
},
"HomeOwner": {
"type": "string"
},
"Count": {
"type": "number"
},
"Mean Income": {
"type": "number"
}
},
[
"Divorced",
"Council",
2303,
69078.051
],
[
"Divorced",
"Owner",
4014,
45799.53
],
[
"Divorced",
"Parent",
572,
30465.58
],
[
"Divorced",
"Parents",
2820,
52594.18
],
[
"Divorced",
"Rental",
3126,
50299.78
],
[
"Divorced",
"Unknown",
1241,
54151.33
],
[
"Married",
"Council",
2745,
56311.20
],
[
"Married",
"Owner",
5674,
41691.97
],
[
"Married",
"Parent",
1842,
30953.66
],
[
"Married",
"Parents",
4404,
45021.087
],
[
"Married",
"Rental",
5037,
45353.72
],
[
"Married",
"Unknown",
2435,
53154.20
],
[
"Remarried",
"Council",
1684,
54079.958
],
[
"Remarried",
"Owner",
3316,
42047.052
],
[
"Remarried",
"Parent",
602,
32226.72
],
[
"Remarried",
"Parents",
2758,
46584.82
],
[
"Remarried",
"Rental",
3061,
44550.96
],
[
"Remarried",
"Unknown",
2472,
48148.072
],
[
"Single",
"Council",
5673,
57472.00
],
[
"Single",
"Owner",
11118,
43635.23
...