From 2d797484135e67339651626e615a7e82e32a41bf Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 16 Aug 2019 15:24:49 +0100 Subject: [PATCH] commented out console.logs --- .../more-graphs-and-tables.component.ts | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/app/dashboard/more-graphs-and-tables.component.ts b/src/app/dashboard/more-graphs-and-tables.component.ts index 496de98..1e363ed 100644 --- a/src/app/dashboard/more-graphs-and-tables.component.ts +++ b/src/app/dashboard/more-graphs-and-tables.component.ts @@ -63,9 +63,9 @@ export class MoreStuffComponent implements OnInit { let is_item_in_range = (new Date(item.date.substring(0, 10)) >= new Date(start_range) && new Date(item.date.substring(0, 10)) <= new Date(end_range)); // there are a lot of `new Date(blah)` but that is what works for some reason. - console.log("item.date : " + (item.date)); - console.log("Date(item.date) : " + new Date(item.date)); - console.log("Date(item.date.substring(0, 10)) : " + new Date(item.date.substring(0, 10))); + // console.log("item.date : " + (item.date)); + // console.log("Date(item.date) : " + new Date(item.date)); + // console.log("Date(item.date.substring(0, 10)) : " + new Date(item.date.substring(0, 10))); // console.log("start_range input box: " + start_range); // console.log("start_range : " + new Date(start_range)); // console.log("end_range input box: " + end_range); @@ -73,7 +73,7 @@ export class MoreStuffComponent implements OnInit { // console.log("item.date >= start_range: " + (new Date(item.date) >= new Date(start_range))); // console.log("item.date <= end_range: " + (new Date(item.date) <= new Date(end_range))); // console.log("is_item_in_range: " + is_item_in_range); - console.log("----------------------"); + // console.log("----------------------"); if (is_item_in_range) { graph_data.push({ @@ -119,26 +119,26 @@ export class MoreStuffComponent implements OnInit { } if (is_cached) { - console.log("Using cached data of " + this.cached_graph_data.length + " items."); + // console.log("Using cached data of " + this.cached_graph_data.length + " items."); this.supplierBubbleChartData[0].data = this.formatGraphData(this.cached_graph_data, useRange, start_range, end_range); this.isBubbleChartLoaded = true; - console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); + // console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); } else { - console.log("Not using cached data."); + // console.log("Not using cached data."); this.api.loadMiscUrl('organisation/external/supplier_count').subscribe( result => { this.cached_graph_data = result; this.supplierBubbleChartData[0].data = this.formatGraphData(result, useRange, start_range, end_range); - console.log("Graph fetched with " + this.supplierBubbleChartData[0].data.length + " items."); + // console.log("Graph fetched with " + this.supplierBubbleChartData[0].data.length + " items."); this.isBubbleChartLoaded = true; - console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); + // console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); } ) } - console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); + // console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); } public supplierBubbleChartType: ChartType = 'bubble'; @@ -195,7 +195,7 @@ export class MoreStuffComponent implements OnInit { let value_data = []; let count_data = []; - console.log("Graph being fetched from server."); + console.log("The server is UP"); result.data.map(item => { value_data.push({ t: item.date, @@ -215,13 +215,13 @@ export class MoreStuffComponent implements OnInit { } bubbleChartUpdate() { - console.log("start_range input box: " + this.bubbleChartBegin); - console.log("end_range input box: " + this.bubbleChartEnd); + // console.log("start_range input box: " + this.bubbleChartBegin); + // console.log("end_range input box: " + this.bubbleChartEnd); // this is called when daterange is changed this.loadSupplierBubble(true, (this.bubbleChartBegin), (this.bubbleChartEnd)); - console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); + // console.log("variable \"this.isBubbleChartLoaded\": " + this.isBubbleChartLoaded); /* bubbleChartBegin: any; bubbleChartEnd: any;