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>

CSS

/*  .fm-row .fm-cell{
   text-align: right !important;
 } */

JavaScript

new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  report: {
    dataSource: {
      type: "csv",
      filename: "data/data.csv"
    },
    options: {
      grid: {
        type: "flat"
      }
    },
    slice: {
      columns: [{
        uniqueName: "Country"
      }, {
        uniqueName: "Category"
      }, {
        uniqueName: "Color"
      }, {
        uniqueName: "Price"
      }, {
        uniqueName: "Discount"
      }]
    },
    formats: [{
      textAlign: "right",
      name: ""
    }],
  },
  width: "100%",
  height: 370
});