Init with API call new Flexmonster (with the Toolbar)

Embedding Flexmonster

by alsoderg

HTML

<script src="https://cdn.flexmonster.com/flexmonster.js"></script>

<div id="pivot-container"></div>

JavaScript

let report = {
    "dataSource": {
        "type": "json",
        "data": [
            {
                "company": {
                    "type": "string"
                },
                "datasource": {
                    "type": "string"
                },
                "dataSourceOrder": {
                    "type": "number",
                    "folder": "Data Property"
                },
                "date": {
                    "type": "string"
                },
                "accountingPeriod": {
                    "type": "string",
                    "folder": "Data Property"
                },
                "isBudgetData": {
                    "type": "string",
                    "folder": "Data Property"
                },
                "isFormulaRowData": {
                    "type": "string",
                    "folder": "Data Property"
                },
                "isCumulativeData": {
                    "type": "string",
                    "folder": "Data Property"
                },
                "sourceCompany": {
                    "type": "string",
                    "folder": "Data Property"
                },
                "recordId": {
                    "type": "id"
                },
                "realBalanceIds": {
                    "type": "string",
                    "folder": "Data Property"
                },
                "year": {
                    "type": "string",
                    "folder": "Dates"
                },
                "month": {
                    "type": "string",
                    "folder": "Dates",
                    "order": [
                        "01",
                        "02",
                        "03",
                        "04",
                        "05",
                        "06",
                        "07",
                        "08",
                        "09",
                        "10",
                        "11",
      ...