Show empty values

by ilaria_nunziante

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",
      mapping: {
        "Year": {
          "type": "string",
        },
        "Month": {
          "type": "string",
        },
        "Product": {
          "type": "string"
        },
        "Price": {
          "type": "number"
        }
      },
      data: [{
          "Month": "Dec2019",
          "Year": "2019",
          "Product": "apple",
          "Price": 1
        },
        {
          "Month": "Jan2020",
          "Year": "2020",
          "Product": "orange",
          "Price": 1
        },
        {
          "Month": "Jan2020",
          "Year": "2020",
          "Product": "pear",
          "Price": 1
        }
      ]
    },
    options: {
      showEmptyValues: "columns"
    },
    slice: {
      rows: [{
        uniqueName: "Product",
        "filter": {
          "exclude": [
            "product.[apple]"
          ]
        }
      }],
      columns: [{
        uniqueName: "Year"
      }, {
        uniqueName: "Month"
      }, {
        uniqueName: "[Measures]"
      }],
      measures: [{
        uniqueName: "Price"
      }],
    }
  }
});