Flexmonster - Flat Table

Demos

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 flexmonster = new Flexmonster({
  container: "#pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  report: {
    dataSource: {
      dataSourceType: "json",
      data: [
      	{ "label": {"type": "string"},
        	"numbercol": {"type": "number"}
        },
        ["label1",2.334353]
      ]
    },
    options: {
      grid: {
        type: "flat",
        showGrandTotals: 'off', 
        showTotals: 'off'
      },
      configuratorActive: false
    },
    formats: [
     {thousandsSeparator: '', maxDecimalPlaces: 2}
    ],
    slice: {

    }
  },
  width: "100%",
  height: 370
});

flexmonster.setFormat({maxDecimalPlaces: -1},'numbercol');
flexmonster.refresh();