diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index bf48479..cd0d250 100644 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -17,21 +17,8 @@
-
-

No. of Essential Purchases

-
-
- +
+

Number of Essential Purchases

@@ -50,22 +37,9 @@
-
+

All Organisation Purchases by Category

-
- -
-
-

Spend amount and number of purchases by supplier name

+
+

Supplier spend amount and number of purchases

-
- +
+ - +
@@ -25,12 +25,12 @@
-
+

Spend amount and number of organisations

-
- - +
+ +
diff --git a/src/app/dashboard/more-graphs-and-tables.component.ts b/src/app/dashboard/more-graphs-and-tables.component.ts index 028273b..cf16447 100644 --- a/src/app/dashboard/more-graphs-and-tables.component.ts +++ b/src/app/dashboard/more-graphs-and-tables.component.ts @@ -22,10 +22,12 @@ export class MoreStuffComponent implements OnInit { ) { this.bubbleChartBegin = moment().format('YYYY-MM-DD'); this.bubbleChartEnd = moment().format('YYYY-MM-DD'); + this.lineChartBegin = moment().format('YYYY-MM-DD'); + this.lineChartEnd = moment().format('YYYY-MM-DD'); } ngOnInit(): void { - this.loadYearSpend(); + this.loadYearSpend(false, ('January 1, 2018'), ('January 1, 2019')); this.loadSupplierBubble(false, ('January 1, 2018'), ('January 1, 2019')); // pass start and end date ranges to this as Date()s this.loadSupplierHistory(); } @@ -275,6 +277,17 @@ export class MoreStuffComponent implements OnInit { return Math.random(); } + lineChartUpdate() { + console.log("start_range input box: " + this.lineChartBegin.date); + console.log("start_range : " + new Date(this.lineChartBegin)); + console.log("end_range input box: " + this.lineChartEnd); + console.log("end_range : " + new Date(this.lineChartEnd)); + + this.loadSupplierBubble(true, (this.bubbleChartBegin), (this.bubbleChartEnd)); + console.log("Bubble chart updating..."); + + } + @ViewChild('supplierChart', {read: BaseChartDirective, static: false}) supplierChart: BaseChartDirective; private loadSupplierHistory() { diff --git a/src/app/panels/graph-panel.component.html b/src/app/panels/graph-panel.component.html index f01f806..6f4f35e 100644 --- a/src/app/panels/graph-panel.component.html +++ b/src/app/panels/graph-panel.component.html @@ -1,22 +1,9 @@
-
+

Customers

-
- -