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>

CSS

.fm-rows-resize div.fm-handle{
  pointer-events: none !important;
}

JavaScript

let pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  report: {
    dataSource: {
      filename: "data/data.csv"
    },
    slice: {
      rows: [{
        uniqueName: "Category"
      }],
      columns: [{
          uniqueName: "Country",
        },
        {
          uniqueName: "[Measures]"
        }
      ],
      measures: [{
        uniqueName: "Price",
        aggregation: "sum"
      }]
    },
    tableSizes: {
      columns: [
        {
          "tuple": ["country.[Australia]"],
          "measure": {
            "uniqueName": "Price",
            "aggregation": "sum"
          },
          "width": 360,
        }
      ],
      "rows": [{
        "tuple": ["category.[cars]"],
        "height": 80
      }]
    }
  }
});