text: "use strict";
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
      return c > 3 && r && Object.defineProperty(target, key, r), r;
  };
  var __metadata = (this && this.__metadata) || function (k, v) {
      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  var core_1 = require("@angular/core");
  var http_1 = require("@angular/common/http");
  var WidgetsComponent = /** @class */ (function () {
      function WidgetsComponent(http) {
          var _this = this;
          this.http = http;
          this.lat = 33.790807;
          this.lng = -117.835734;
          this.zoom = 14;
          this.scrollwheel = false;
          this.sparkOptions2 = {
              type: 'line',
              height: 80,
              width: '100%',
              lineWidth: 2,
              lineColor: '#dddddd',
              spotColor: '#bbbbbb',
              fillColor: '',
              highlightLineColor: '#fff',
              spotRadius: 3,
              resize: true
          };
          this.sparkOptions3 = {
              barColor: '#fff',
              height: 50,
              barWidth: 6,
              barSpacing: 6
          };
          this.splineOptions = {
              series: {
                  lines: {
                      show: false
                  },
                  points: {
                      show: true,
                      radius: 4
                  },
                  splines: {
                      show: true,
                      tension: 0.4,
                      lineWidth: 1,
                      fill: 0.5
                  }
              },
              grid: {
                  borderColor: '#eee',
                  borderWidth: 1,
                  hoverable: true,
                  backgroundColor: '#fcfcfc'
              },
              tooltip: true,
              tooltipOpts: {
                  content: function (label, x, y) { return x + ' : ' + y; }
              },
              xaxis: {
                  tickColor: '#fcfcfc',
                  mode: 'categories'
              },
              yaxis: {
                  min: 0,
                  max: 150,
                  tickColor: '#eee',
                  // position: (app.layout.isRTL ? 'right' : 'left'),
                  tickFormatter: function (v) {
                      return v /* + ' visitors'*/;
                  }
              },
              shadowSize: 0
          };
          this.getChartData('assets/server/chart/spline.json').subscribe(function (data) { return _this.splineData = data; });
      }
      WidgetsComponent.prototype.getChartData = function (url) {
          return this.http.get(url);
      };
      WidgetsComponent.prototype.ngOnInit = function () {
      };
      WidgetsComponent = __decorate([
          core_1.Component({
              selector: 'app-widgets',
              templateUrl: './widgets.component.html',
              styleUrls: ['./widgets.component.scss']
          }),
          __metadata("design:paramtypes", [http_1.HttpClient])
      ], WidgetsComponent);
      return WidgetsComponent;
  }());
  exports.WidgetsComponent = WidgetsComponent;
  //# sourceMappingURL=widgets.component.js.map