From 7a6f40e300c29308b53933fe2f32686caf297062 Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 12 Jul 2019 15:49:06 +0100 Subject: [PATCH] fixed bugs --- src/app/dashboard/dashboard.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts index 72e6478..cf7032e 100644 --- a/src/app/dashboard/dashboard.component.ts +++ b/src/app/dashboard/dashboard.component.ts @@ -1,6 +1,8 @@ import { Component } from '@angular/core'; import { Router, NavigationEnd } from "@angular/router"; 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 { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component'; import { GraphPanel } from '../panels/graph-panel.component'; @@ -258,7 +260,7 @@ export class DashboardComponent { this.barChartLabelsCategory = Object.keys(dataSec); let lineChartDataSectorInitial = Object.keys(dataSec).map(key => dataSec[key]); this.lineChartDataSector = [ - {data: barChartDataCategoryInitial, label: 'Series A'}, + {data: lineChartDataSectorInitial, label: 'Series A'}, ]; this.showCategoryBarChart = true; if (this.weekList1) {