fixed bugs

This commit is contained in:
Finn 2019-07-12 15:49:06 +01:00
parent 4b7ffd91b3
commit 7a6f40e300
No known key found for this signature in database
GPG key ID: 7455B4B17685B598

View file

@ -1,6 +1,8 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Router, NavigationEnd } from "@angular/router"; import { Router, NavigationEnd } from "@angular/router";
import { CurrencyPipe } from '@angular/common'; import { CurrencyPipe } from '@angular/common';
import { ChartOptions, ChartType, ChartDataSets } from 'chart.js';
import { Color, Label } from 'ng2-charts';
import { GraphWidget } from '../widgets/graph-widget.component'; import { GraphWidget } from '../widgets/graph-widget.component';
import { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component'; import { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component';
import { GraphPanel } from '../panels/graph-panel.component'; import { GraphPanel } from '../panels/graph-panel.component';
@ -258,7 +260,7 @@ export class DashboardComponent {
this.barChartLabelsCategory = Object.keys(dataSec); this.barChartLabelsCategory = Object.keys(dataSec);
let lineChartDataSectorInitial = Object.keys(dataSec).map(key => dataSec[key]); let lineChartDataSectorInitial = Object.keys(dataSec).map(key => dataSec[key]);
this.lineChartDataSector = [ this.lineChartDataSector = [
{data: barChartDataCategoryInitial, label: 'Series A'}, {data: lineChartDataSectorInitial, label: 'Series A'},
]; ];
this.showCategoryBarChart = true; this.showCategoryBarChart = true;
if (this.weekList1) { if (this.weekList1) {