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

JavaScript

let pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  height:650,
  report: {
    dataSource: {
      filename: "data/data.csv",
    },
    options: {
      showAggregationLabels: false,
    },
    slice: {
      rows: [{
          uniqueName: "Business Type"
        },
        {
          uniqueName: "[Measures]"
        }
      ],
      columns: [{
        uniqueName: "Country"
      }],
      measures: [{
          uniqueName: "Price",
          aggregation: "sum",
          format: "currency",
          caption: "Sum of Price"
        },
        {
          uniqueName: "Price",
          aggregation: "percentofparentcolumntotal",
          caption: "% of Total",

        }
      ]
    },
    "formats": [{
        "name": "",
        "thousandsSeparator": ",",
        "decimalSeparator": ".",
        "decimalPlaces": 0,
        "nullValue": "-"
      },
      {
        "name": "currency",
        "currencySymbol": "$"
      }
    ]
  }
});