JSFiddle - React, Tailwind, and code Playground

by Dongor7

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>

JavaScript

var pivot = new Flexmonster({
	container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 430,
  toolbar: true,
  report: {
    dataSource: {
      dataSourceType: "json",
      data: [
      {
        "date":{"type":"date string"},
        "n":{"type":"number"}
      },
      {
        "date":"2016-04-06T23:59:30",
        "n":1
      },
      {
        "date":"2016-04-06T23:59:30",
        "n":1
      },
      {
        "date":"2016-02-07T20:33",
        "n":1
      }
      ]
    },
    options: {
      datePattern: "MM/dd/yyyy",
      filter: {
      	dateFormat: "yyyy-MM-dd"
      }
         
    },
    slice: {
      rows: [{ uniqueName: "date" }],
      columns: [{ uniqueName: "[Measures]" }],
      measures: [{ uniqueName: "n" }],
    }
  }
});