diff --git a/frontend/src/views/Stats.vue b/frontend/src/views/Stats.vue index cf4a962..970d5f5 100644 --- a/frontend/src/views/Stats.vue +++ b/frontend/src/views/Stats.vue @@ -13,9 +13,23 @@ - - Trends - AFIs + + + + Select Chart: + Trends + AFIs + + + + + Quick Interval: + 1 Week + 1 Month + 3 Months + 1 Year + + @@ -228,6 +242,10 @@ export default { }, changeEndDate: function(e) { this.endDate = e.date; + }, + setInterval: function(amount, timeType){ + this.endDate = moment(); + this.startDate = moment().subtract(amount, timeType); } }, watch: {