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/",
  licenseFilePath: "https://cdn.flexmonster.com/jsfiddle.charts.key",
  toolbar: true,
  report: {
    "dataSource": {
      "dataSourceType": "json",
      "mapping": {
        "company": {
          "type": "string"
        },
        "datasource": {
          "type": "string"
        },
        "date": {
          "type": "string"
        },
        "dataSourceOrder": {
          "type": "number",
          "folder": "Data Property"
        },
        "accountingPeriod": {
          "type": "string",
          "folder": "Data Property"
        },
        "isBudgetData": {
          "type": "string",
          "folder": "Data Property"
        },
        "isCumulativeData": {
          "type": "string",
          "folder": "Data Property"
        },
        "sourceCompany": {
          "type": "string",
          "folder": "Data Property"
        },
        "recordId": {
          "type": "id"
        },
        "year": {
          "type": "string",
          "folder": "Dates"
        },
        "month": {
          "type": "string",
          "folder": "Dates"
        },
        "amount": {
          "type": "number"
        },
        "datasource 1": {
          "type": "number"
        },
        "level1": {
          "hierarchy": "rows"
        },
        "level2": {
          "parent": "level1",
          "hierarchy": "rows"
        },
        "level3": {
          "parent": "level2",
          "hierarchy": "rows"
        },
        "level4": {
          "parent": "level3",
          "hierarchy": "rows"
        },
        "level5": {
          "parent": "level4",
          "hierarchy": "rows"
        }
      },
      "data": [
        null,
        {
          "company": "P-company Oy",
          "sourceCompany": null,
          "datasource": "Datasource 1",
          "dataSourceOrder": 0,
          "accountingPeriod": "2019",
         ...