From 8a6417c9200b614c26aebd62d134b84313859178 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 14 Aug 2019 16:27:28 +0100 Subject: [PATCH] debugging options --- src/app/dashboard/more-graphs-and-tables.component.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/dashboard/more-graphs-and-tables.component.ts b/src/app/dashboard/more-graphs-and-tables.component.ts index e82c151..12e78b8 100644 --- a/src/app/dashboard/more-graphs-and-tables.component.ts +++ b/src/app/dashboard/more-graphs-and-tables.component.ts @@ -24,7 +24,8 @@ export class MoreStuffComponent implements OnInit { ngOnInit(): void { this.loadYearSpend(); - this.loadSupplierBubble(true, new Date('January 1, 2018'), new Date('January 1, 2019')); // pass start and end date ranges to this as Date()s +// this.loadSupplierBubble(true, new Date('January 1, 2018'), new Date('January 1, 2019')); // pass start and end date ranges to this as Date()s + this.loadSupplierBubble(false, new Date('January 1, 2018'), new Date('January 1, 2019')); // pass start and end date ranges to this as Date()s this.loadSupplierHistory(); } @@ -51,9 +52,13 @@ export class MoreStuffComponent implements OnInit { * Supplier Bubble Chart Setup */ - private loadSupplierBubble(useRange: Bool, start_range : Date, end_range : Date) { + private loadSupplierBubble(useRange: boolean, start_range : Date, end_range : Date) { + console.log("fetching data for bubble chart... (this takes a while)"); + this.api.loadMiscUrl('organisation/external/supplier_count').subscribe( result => { + console.log("data fetched:"); + console.log(result.data); if (useRange == true) { let ranged_data = []; @@ -77,7 +82,6 @@ export class MoreStuffComponent implements OnInit { } else { - console.log(result.data); let graph_data = []; result.data.map(item => { graph_data.push({