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="pivotContainer"></div>

JavaScript

var pivot = new Flexmonster({
  container: "pivotContainer",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  report: {
    dataSource: {
      filename: "https://www.flexmonster.com/fm_uploads/2020/04/data-2636-1.json",
      mapping: {
        "Date": {
          "type": "date string"
        },
        "Feasibility": {
          "type": "number"
        },
        "Forecats": {
          "type": "number"
        },
        "Actual": {
          "type": "number"
        },
        "GL Code": {
          "type": "string"
        },
        "Cost Centre": {
          "type": "string"
        },
        "Note": {
        	"type": "string"
        }
      }
    },
    "slice": {
      "rows": [{
          "uniqueName": "Cost Centre"
        },
        {
          "uniqueName": "GL Code"
        },
        {
        	"uniqueName": "Note"
        }
      ],
      "columns": [{
          "uniqueName": "Date"
        },
        {
          "uniqueName": "[Measures]"
        }
      ],
      "measures": [{
        "uniqueName": "Feasibility",
        "aggregation": "sum"
      }],
      "expands": {
        "expandAll": true
      }
    },
    "formats": [{
      "name": "",
      "thousandsSeparator": ",",
      "decimalPlaces": 2,
      "currencySymbol": "$"
    }],
    "options": {
    	"grid": {
      	"type": "classic",
        "showTotals": false
      }
    }
  }
});