JSFiddle - React, Tailwind, and code Playground

Options

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(),
      mapping: {
      	"Date": {
        	"type": "date string"
      	},
      	"Event": {
        	"type": "string"
     		},
      	"Price": {
      		"type": "number"
      	}
      }
    },
    options: {
      datePattern: "yyyy.MM.dd",
      grid: {
        type: "flat"
      }
    }
  }
});

function getData() {
  return [
    {
      "Date": "2021-03-04T22:52:00",
      "Event": "Concert",
      "Price": 56
    },
    {
      "Date": "2020-01-11T23:55:00",
      "Event": "Performance",
      "Price": 34
    },
    {
      "Date": "2021-03-08T22:45:00",
      "Event": "Cinema",
      "Price": 10
    }
  ]
}