{
  "eventsAndFunctions": [
    {
      "algorithm": {
        "parameters": [],
        "statements": [
          {
            "command": "Refresh",
            "widgetName": "amchart1"
          }
        ],
        "typeReturn": "any",
        "variables": []
      },
      "name": "main_init"
    },
    {
      "algorithm": {
        "parameters": [
          {
            "name": "args",
            "type": "ArgsLoadRecords"
          }
        ],
        "statements": [
          {
            "children": [
              {
                "command": "ReadModel",
                "modelVariableName": "specId",
                "variableName": "specId"
              },
              {
                "command": "Set",
                "expression": "{specId:^specId}",
                "variableName": "filter"
              },
              {
                "command": "Set",
                "expression": "GetGrafics()",
                "variableName": "source"
              },
              {
                "command": "Set",
                "expression": "[]",
                "variableName": "result"
              },
              {
                "children": [
                  {
                    "command": "Push",
                    "expressionItem": "{name:^p[0],value:^p[1]}",
                    "variableNameList": "result"
                  }
                ],
                "command": "ForEach",
                "expressionList": "^source",
                "variableNameItem": "p"
              },
              {
                "command": "Return",
                "expression": "^result"
              }
            ],
            "command": "Try"
          },
          {
            "children": [
              {
                "command": "ConsoleLog",
                "expression": "^error"
              }
            ],
            "command": "Catch",
            "errorName": "Error",
            "variableName": "error"
          }
        ],
        "typeReturn": "any",
        "variables": [
          {
            "name": "specId",
            "type": "string"
          },
          {
            "name": "filter",
            "type": "SalesGrafic"
          },
          {
            "name": "source",
            "type": "any"
          },
          {
            "name": "result",
            "type": "any"
          },
          {
            "name": "p",
            "type": "any"
          },
          {
            "name": "error",
            "type": "any"
          }
        ]
      },
      "name": "amchart1_loadRecords"
    }
  ],
  "model": [
    {
      "name": "specId",
      "required": false,
      "type": "string"
    }
  ],
  "root": {
    "children": [
      {
        "children": [
          {
            "config": {
              "cursor": {
                "type": "XYCursor"
              },
              "paddingRight": 20,
              "scrollbarX": {
                "series": [
                  "s1"
                ],
                "type": "XYChartScrollbar"
              },
              "series": [
                {
                  "dataFields": {
                    "dateX": "name",
                    "valueY": "value"
                  },
                  "id": "s1",
                  "tooltipText": "{valueY.value}",
                  "type": "LineSeries"
                }
              ],
              "type": "XYChart",
              "xAxes": [
                {
                  "renderer": {
                    "grid": {
                      "location": 0
                    }
                  },
                  "type": "DateAxis"
                }
              ],
              "yAxes": [
                {
                  "renderer": {
                    "minWidth": 35
                  },
                  "tooltip": {
                    "disabled": true
                  },
                  "type": "ValueAxis"
                }
              ]
            },
            "height": 230,
            "name": "amchart1",
            "widget": "AmChart"
          }
        ],
        "cssClass": "blz-area-default blz-padding-top-small blz-padding-right-large blz-padding-left-large blz-padding-bottom-small",
        "layout": "responsive",
        "size": 12,
        "title": "[[Meta,PronósticoyVentas]]"
      }
    ],
    "layout": "responsive"
  },
  "routing": {
    "path": "/prueba"
  },
  "unused": []
}