debugging options
This commit is contained in:
parent
00889b2104
commit
b6c0e1b6dd
1 changed files with 7 additions and 3 deletions
|
@ -24,7 +24,8 @@ export class MoreStuffComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.loadYearSpend();
|
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();
|
this.loadSupplierHistory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,9 +52,13 @@ export class MoreStuffComponent implements OnInit {
|
||||||
* Supplier Bubble Chart Setup
|
* 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(
|
this.api.loadMiscUrl('organisation/external/supplier_count').subscribe(
|
||||||
result => {
|
result => {
|
||||||
|
console.log("data fetched:");
|
||||||
|
console.log(result.data);
|
||||||
|
|
||||||
if (useRange == true) {
|
if (useRange == true) {
|
||||||
let ranged_data = [];
|
let ranged_data = [];
|
||||||
|
@ -77,7 +82,6 @@ export class MoreStuffComponent implements OnInit {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
console.log(result.data);
|
|
||||||
let graph_data = [];
|
let graph_data = [];
|
||||||
result.data.map(item => {
|
result.data.map(item => {
|
||||||
graph_data.push({
|
graph_data.push({
|
||||||
|
|
Reference in a new issue