JSON data source

Data source

by Sohan Soni

HTML

<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/",
        toolbar: true,
        report: 

{
    "dataSource": {
        "dataSourceType": "json",
        "data": [
            {
                "DMO": {
                    "type": "datetime",
                    "caption": "dmo"
                },
                "BOOKGROUP": {
                    "type": "string",
                    "caption": "bookgroup"
                },
                "DEAL_TYPE": {
                    "type": "string",
                    "caption": "DealType"
                },
                "BOOK": {
                    "type": "string",
                    "caption": "book"
                },
                "CPTY": {
                    "type": "string",
                    "caption": "cpty"
                },
                "MKT": {
                    "type": "string",
                    "caption": "mkt"
                },
                "COMP": {
                    "type": "string",
                    "caption": "comp"
                },
                "QTY": {
                    "type": "number",
                    "caption": "qty"
                },
                "VALUE": {
                    "type": "number",
                    "caption": "value"
                },
                "DELTA": {
                    "type": "number",
                    "caption": "delta"
                },
                "ROW_TO_DELETE": {
                    "type": "delete"
                },
                "ROWID": {
                    "type": "id"
                },
                "ZACTIVE": {
                    "type": "number"
                },
                "ZREFRESH": {
                    "type": "number"
                }
            },
            {
                "BOOK": "01AA",
                "CPTY": "SCLM",
                "MKT": "FX",
                "COMP": "USD",
                "DMO":...