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

var pivot = new Flexmonster({
	container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 430,
  toolbar: true,
  report: {
    dataSource: {
      dataSourceType: "json",
      data: [
      {
        "Date": {"type": "year/quarter/month/day"},
        "Price": {"type": "number"}
      },
      {
        "Date": "2019-03-06T23:59:30",
        "Price": 50
      },
      {
        "Date": "2019-01-06T23:59:30",
        "Price": 20
      },
      {
        "Date":"2019-02-07T20:33",
        "Price": 100
      },
      {
        "Date": "2019-03-06T23:59:30",
        "Price": 50
      },
      {
        "Date": "2019-04-06T23:59:30",
        "Price": 20
      }
      ]
    },
    slice: {
      rows: [{ uniqueName: "Date" }],
      columns: [{ uniqueName: "[Measures]" }],
      measures: [{ uniqueName: "Price" }],
        "drills": {
            "rows": [
                {
                    "tuple": [
                        "date.[2019]"
                    ]
                }
            ]
        }
    }
  }
});