Flexmonster - Classic View

Demos

by Ravi A

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

new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  report: {
    dataSource: {
      type: "csv",
      filename: "data/data.csv"
    },
    options: {
      grid: {
        type: "classic"
      },
      configuratorActive: false
    },
    slice: {
      rows: [{
        uniqueName: "Country"
      }, {
        uniqueName: "Business Type"
      }],
      columns: [{
        uniqueName: "Color"
      }, {
        uniqueName: "[Measures]"
      }],
      measures: [{
        uniqueName: "Price"
      }],
      expandAll: true
    }
  },
  width: "100%",
  height: 370
});