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-container1"></div>
<div id="pivot-container2"></div>
<div id="pivot-container3"></div>

CSS

#fm-grid-title {
  text-align: left !important;
  font-weight: normal !important;
}

JavaScript

new Flexmonster({
  container: "#pivot-container1",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 220,
  report: {
    dataSource: {
      filename: "data/sales.csv"
    },
    options: {
      grid: {
        title: "Category: condiments",
        type: "flat",
        grandTotalsPosition: "bottom",
        showHeaders: false
      },
      configuratorButton: false
    },
    slice: {
      columns: [{
        uniqueName: "Month",
        filter: {
          members: [
            "category.[january]"
          ]
        }
      }, {
        uniqueName: "[Measures]"
      }],
      rows: [{
        uniqueName: "Category",
        filter: {
          members: [
            "category.[condiments]"
          ]
        }
      }],
      measures: [{
          "uniqueName": "Revenue"
        },
        {
          "uniqueName": "Quantity"
        }
      ]
    }
  }
});

new Flexmonster({
  container: "#pivot-container2",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 240,
  report: {
    dataSource: {
      filename: "data/sales.csv"
    },
    options: {
      grid: {
        title: "Category: soups",
        type: "flat",
        //showHierarchyCaptions: false,
        grandTotalsPosition: "bottom",
        showHeaders: false
      },
      configuratorButton: false
    },
    slice: {
      columns: [{
        uniqueName: "Month",
        filter: {
          members: [
            "category.[january]"
          ]
        }
      }, {
        uniqueName: "[Measures]"
      }],
      rows: [{
        uniqueName: "Category",
        filter: {
          members: [
            "category.[soups]"
          ]
        }
      }],
      measures: [{
          "uniqueName": "Revenue"
        },
        {
          "uniqueName": "Quantity"
        }
      ]
    }
  }
});

new Flexmonster({
  container: "#pivot-container3",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 150,
 ...