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

new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  report: {
    dataSource: {
      dataSourceType: "json",
      data: [{
          "date with time": {
            "type": "datetime"
          },
          "date without time": {
            "type": "date string"
          }
        },
        ["2018-07-11 16:27:23.381", "2018-07-11"]
      ]
    },
    options: {
      grid: {
        type: "flat"
      },
      configuratorActive: false,
      datePattern: "UTC:dd/MM/yyyy",
      dateTimePattern: "dd/MM/yyyy HH:mm:ss"
    },
    slice: {
      columns: [{
        uniqueName: "Country"
      }, {
        uniqueName: "Category"
      }, {
        uniqueName: "Color"
      }, {
        uniqueName: "Price"
      }, {
        uniqueName: "Discount"
      }]
    }
  },
  width: "100%",
  height: 370
});