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-pivot-view .fm-axis text {
  font-size: 10px !important;
}

#fm-pivot-view .fm-y .fm-axis-label {
  font-size: 12px !important;
}

JavaScript

let pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  report: {
    dataSource: {
      filename: "data/data.json"
    },
    slice: {
      rows: [{
          uniqueName: "Country",
          filter: {
            members: ["Canada", "France", "Germany"]
          }
        },
        {
          uniqueName: "Color",
          filter: {
            members: ["red", "white"]
          }
        }
      ],
      measures: [{
        uniqueName: "Price"
      }]
    },
    options: {
      viewType: "charts",
      readOnly: true,
      chart: {
        type: "column",
        axisShortNumberFormat : true,
      }
    }
  }
});