JSFiddle - React, Tailwind, and code Playground

by Flexmonster Pivot Table

HTML

<script src="https://cdn.flexmonster.com/2.9.15/flexmonster.js"></script>

<div id="pivot-container"></div>

JavaScript

new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 550,
  toolbar: true,
  report: {
    dataSource: {
      data: getData()
    },
    slice: {
      rows: [{
          uniqueName: "Status"
        },
        {
          uniqueName: "Country"
        },
        {
          uniqueName: "Color"
        }
      ],
      columns: [{
        uniqueName: "[Measures]"
      }],
      measures: [{
        uniqueName: "Price",
        aggregation: "sum"
      }]
    },
    options: {
      showGrandTotals: "off",
      showTotals: "off"
    }
  }
});


function getData() {
  return [{
      "Country": "Australia",
      "City": "Canberra",
      "Quantity": 109,
      "Price": 677,
      "Status": "On Hold",
      "Color": "red"
    },
    {
      "Country": "Japan",
      "City": "Tokyo",
      "Quantity": 98,
      "Price": 417,
      "Status": "On Hold",
      "Color": "red"
    },
    {
      "Country": "Switzerland",
      "City": "Geneva",
      "Quantity": 154,
      "Price": 507,
      "Status": "Shipped",
      "Color": "red"
    },
    {
      "Country": "Norway",
      "City": "Oslo",
      "Quantity": 165,
      "Price": 1040,
      "Status": "In Process",
      "Color": "red"
    },
    {
      "Country": "UK",
      "City": "London",
      "Quantity": 205,
      "Price": 697,
      "Status": "Shipped",
      "Color": "blue"
    },
    {
      "Country": "Sweden",
      "City": "Stockholm",
      "Quantity": 109,
      "Price": 779,
      "Status": "In Process",
      "Color": "blue"
    },
    {
      "Country": "Ukraine",
      "City": "Kyiv",
      "Quantity": 335,
      "Price": 1118,
      "Status": "Resolved",
      "Color": "blue"
    },
    {
      "Country": "Switzerland",
      "City": "Geneva",
      "Quantity": 231,
      "Price": 384,
      "Status": "Shipped",
      "Color": "red"
    },
    {
      "Country": "Israel",
      "City": "Tel Aviv",
      "Quantity":...