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/",
  global: {
    options: {
      datePattern: "MM/dd/yyyy"
    }
  },
  report: {
    "dataSource": {
      "type": "elasticsearch",
      "node": "https://olap.flexmonster.com:9200",
      "index": "kibana_sample_data_flights"
    },
    "slice": {
      "rows": [{
        "uniqueName": "timestamp"
      }],
      "columns": [{
        "uniqueName": "[Measures]"
      }],
      "measures": [{
        "uniqueName": "AvgTicketPrice",
        "aggregation": "sum"
      }]
    },
    options: {
      viewType: "grid_charts",
      chart: {
        type: "line",
        position: "top"
      }
    }
  }
});