JSFiddle - React, Tailwind, and code Playground

by Flexmonster Pivot Table

HTML

<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,
  report: {
    dataSource: {
      data: getData()
    },
    options: {
      grid: {
        type: "flat"
      }
    },
    "formats": [{
      "decimalPlaces": 4
    }]
  }
});

function getData() {
  return [{
      "quantity": 1,
      "value": 557.4227,
      "percentage": 0.0381,
      "total_Inventory_Value": 1464173.8051,
      "abC_Analysis": "A"
    },
    {
      "quantity": 1,
      "value": 63.7054,
      "percentage": 0.0044,
      "total_Inventory_Value": 1464173.8051,
      "abC_Analysis": "A"
    },
    {
      "quantity": 2,
      "value": 62.6736,
      "percentage": 0.0041,
      "total_Inventory_Value": 1520874.2734,
      "abC_Analysis": "A"
    }
  ]
}