From 00889b21049f110708fc9e4d8cf1ed5a139d2df8 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 14 Aug 2019 16:06:09 +0100 Subject: [PATCH] fetches correct date ranges --- src/app/dashboard/more-graphs-and-tables.component.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/dashboard/more-graphs-and-tables.component.ts b/src/app/dashboard/more-graphs-and-tables.component.ts index a2f1bcc..e82c151 100644 --- a/src/app/dashboard/more-graphs-and-tables.component.ts +++ b/src/app/dashboard/more-graphs-and-tables.component.ts @@ -51,11 +51,11 @@ export class MoreStuffComponent implements OnInit { * Supplier Bubble Chart Setup */ - private loadSupplierBubble(bool useRange, Date start_range, Date end_range) { + private loadSupplierBubble(useRange: Bool, start_range : Date, end_range : Date) { this.api.loadMiscUrl('organisation/external/supplier_count').subscribe( result => { - if (useRange) { + if (useRange == true) { let ranged_data = []; for (var i = 0; i < ranged_data.data.count; i++) { @@ -68,9 +68,9 @@ export class MoreStuffComponent implements OnInit { y: item.count, value: item.value, count: item.count, - }); + }); } - } + }); } this.supplierBubbleChartData[0].data = ranged_data; @@ -171,7 +171,8 @@ export class MoreStuffComponent implements OnInit { } bubbleChartUpdate() { - + // this is called when daterange is changed + console.log("yeeeee"); } public yearSpendChartData: any[] = [