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 @@