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

/* CHARTS */

.fm-charts-color-1 {
  fill: #93baf9 !important;
}

.fm-charts-color-2 {
  fill: #5492f7 !important;
}

.fm-charts-color-3 {
  fill: #025ff7 !important;
}

.fm-charts-color-4 {
  fill: #022354 !important;
}

.fm-charts-color-5 {
  fill: #bebebe !important;
}

.fm-charts-color-6 {
  fill: red !important;
}

.fm-charts-color-7 {
  fill: black !important;
}

.fm-charts-color-8 {
  fill: yellow !important;
}

.fm-charts-color-9 {
  fill: green !important;
}

.fm-charts-color-10 {
  fill: orange !important;
}

.fm-charts-color-11 {
  fill: purple !important;
}

JavaScript

var pivot = new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  report: {
    dataSource: {
      data: getData()
    },
    options: {
      viewType: "charts",
      chart: {
        type: "pie",
        showAllLabels: true
      }
    },
    slice: {
      rows: [{
        uniqueName: "Color"
      }],
      measures: [{
        uniqueName: "Quantity"
      }]
    }
  }
});

function getData() {
  return [{
      "Color": {
        "type": "string"
      },
      "M": {
        "type": "month",
        "caption": "Month"
      },
      "W": {
        "type": "weekday",
        "caption": "Week Day"
      },
      "Country": {
        "type": "level",
        "hierarchy": "Geography",
        "level": "Country"
      },
      "State": {
        "type": "level",
        "hierarchy": "Geography",
        "level": "State",
        "parent": "Country"
      },
      "City": {
        "type": "level",
        "hierarchy": "Geography",
        "parent": "State"
      },
      "Price": {
        "type": "number"
      },
      "Quantity": {
        "type": "number"
      }
    },
    {
      "Color": "green",
      "M": "September",
      "W": "Wed",
      "Country": "Canada",
      "State": "Ontario",
      "City": "Toronto",
      "Price": 174,
      "Quantity": 22
    },
    {
      "Color": "red",
      "M": "March",
      "W": "Mon",
      "Country": "USA",
      "State": "California",
      "City": "Los Angeles",
      "Price": 1664,
      "Quantity": 19
    },
    {
      "Color": "red",
      "M": "January",
      "W": "Mon",
      "Country": "Canada",
      "State": "Quebec",
      "City": "Montreal",
      "Price": 1190,
      "Quantity": 292
    },
    {
      "Color": "green",
      "D": "04/08/2014",
      "M": "August",
      "W": "Fri",
      "Country": "USA",
      "State": "California",
      "City": "Los Angeles",
      "Price": 1222,
      "Quantity": 57
    },
    {
      "Color":...