|
|
@@ -172,7 +172,7 @@ let analytics = {
|
|
|
},
|
|
|
|
|
|
displayIngredient: function(){
|
|
|
- if(this.ingredient === undefined || this.transactionsByDate.length === 0) return;
|
|
|
+ if(this.ingredient === undefined || this.transactionsByDate.length === 0) return;
|
|
|
|
|
|
//break down data into dates and quantities
|
|
|
let dates = [];
|
|
|
@@ -190,6 +190,8 @@ let analytics = {
|
|
|
quantities.push(sum);
|
|
|
}
|
|
|
|
|
|
+ console.log(quantities);
|
|
|
+
|
|
|
//create and display the graph
|
|
|
let trace = {
|
|
|
x: dates,
|