commented out console.logs
This commit is contained in:
parent
7f3c8bb123
commit
2d79748413
1 changed files with 14 additions and 14 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue