From da7c130b352e8c28c8b7a45ce2c50931bbc2f6df Mon Sep 17 00:00:00 2001 From: Paul Pestov Date: Mon, 6 Nov 2023 21:15:28 +0100 Subject: [PATCH] feat: set fixed start and end dates to all charts --- .../timeline/MetricAverageChart.vue | 6 +++-- src/components/timeline/MetricChart.vue | 13 ++++++----- src/components/timeline/TimelineChart.vue | 16 +++++++------- src/components/timeline/TimelineItem.vue | 22 ++++++++++++++++--- 4 files changed, 38 insertions(+), 19 deletions(-) diff --git a/src/components/timeline/MetricAverageChart.vue b/src/components/timeline/MetricAverageChart.vue index 2e38633..17d650f 100644 --- a/src/components/timeline/MetricAverageChart.vue +++ b/src/components/timeline/MetricAverageChart.vue @@ -7,7 +7,9 @@ import Metrics from '@/helpers/metrics' const props = defineProps<{ gtId: string, - metric: string + metric: string, + startDate: Date, + endDate: Date }>() const data = ref([]) @@ -69,7 +71,7 @@ function getMaxYByMetric(metric: string) {