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 jsonData = [{
    "record_type": "booked",
    "organization_name": "Organization Name1",
    "company_name": "Booking Company Name1",
    "salesrep_name": "Salesrep Name1",
    "client_name": "Arizona Company Name",
    "fiscal_year": 2020,
    "fiscal_month_number": "03",
    "product_channel": "Agency",
    "product_group": "Local",
    "product": "Local Standard",
    "industry": "Medical",
    "sf_opportunity_id": "",
    "dti_order_id": 106422,
    "revenue": 250,
    "revenue_net": 250,
    "vendor_spend": 0,
    "pipeline_gross": 0,
    "pipeline_net": 0,
    "goal_target": 0
  },
  {
    "record_type": "goal",
    "organization_name": "Organization Name1",
    "company_name": "Booking Company Name1",
    "salesrep_name": "Salesrep Name1",
    "client_name": "",
    "fiscal_year": 2020,
    "fiscal_month_number": "03",
    "product_channel": "Agency",
    "product_group": "",
    "product": "",
    "industry": "",
    "sf_opportunity_id": "",
    "dti_order_id": "",
    "revenue": 0,
    "revenue_net": 0,
    "vendor_spend": 0,
    "pipeline_gross": 0,
    "pipeline_net": 0,
    "goal_target": 1000
  },
  {
    "record_type": "pipeline",
    "organization_name": "Organization Name1",
    "company_name": "Booking Company Name1",
    "salesrep_name": "Salesrep Name1",
    "client_name": "",
    "fiscal_year": 2020,
    "fiscal_month_number": "03",
    "product_channel": "Agency",
    "product_group": "Local",
    "product": "Local Standard",
    "industry": "Medical",
    "sf_opportunity_id": "00ff332k3h58328",
    "dti_order_id": "",
    "revenue": 0,
    "revenue_net": 0,
    "vendor_spend": 0,
    "pipeline_gross": 500,
    "pipeline_net": 500,
    "goal_target": 0
  }
]

new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 730,
  toolbar: true,
  report: {
    dataSource: {
      data: jsonData
    },
    "slice": {
      "rows": [{
          "uniqueName": "salesrep_name"
  ...