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>

CSS

.fm-charts-layout text.fm-label {
  font-size: x-small !important;
}

#fm-pivot-view .fm-axis .special-label {
  fill: coral;
  outline: 1px dashed coral;
  outline-offset: 2px;
  font-weight: bold;
}

JavaScript

var pivot = new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  report: {
    dataSource: {
      type: "json",
      data: getData(),
      mapping: {
        "Age": {
          "type": "number"
        },
        "Order Date": {
          "type": "date"
        },
        "City": {
          "type": "string"
        },
        "Amount": {
          "type": "number"
        },
        "Price": {
          "type": "number"
        },
        "Payment Type": {
          "type": "string"
        },
        "Referring Site": {
          "type": "string"
        },
        "Orders": {
          "type": "number"
        },
        "Name": {
          "type": "string"
        }
      },
    },
    "slice": {
      "rows": [{
        "uniqueName": "City"
      }],
      "columns": [{
        "uniqueName": "[Measures]"
      }],
      "measures": [{
          "uniqueName": "Orders",
          "aggregation": "sum"
        },
        {
          "uniqueName": "Revenue",
          "formula": "sum(\"Amount\") * sum(\"Price\")",
          "individual": true,
          "caption": "Revenue",
          "format": "currency"
        }
      ]
    },
    "options": {
      "viewType": "charts",
      "chart": {
        "type": "column"
      }
    },
  },
  width: "100%",
  height: 500
});

// Specific labels to style:
const specialLabels = ["Mumbai", "Paris", "Seville"];

pivot.on('afterchartdraw', function() {
  // Get the chart labels:
  let labels = document.getElementsByClassName('fm-label');
  let labelsArray = [...labels];

  for (let i = 0; i < labelsArray.length; i++) {
    let label = labelsArray[i];
    if (specialLabels.includes(label.innerHTML)) {
      // Add the desired CSS to the label:
      label.classList.add("special-label");
    }
  }
});

function getData() {
  return [{
      "Age": 59,
      "Order Date": "9/28/2007",
      "City": "Prague",
      "Amount": 510,
      "Price": 60,
     ...