diff --git a/frontend/src/stores/charts.js b/frontend/src/stores/charts.js index e3c67dc..2fbc6f7 100644 --- a/frontend/src/stores/charts.js +++ b/frontend/src/stores/charts.js @@ -7,6 +7,7 @@ import chroma from 'chroma-js' import { mdiCircle, mdiSquareRounded, mdiRectangle, mdiRhombus } from '@mdi/js' import { useHydrologicStore } from '@/stores/hydrologic' import { useAlertStore } from '@/stores/alerts' +import { useStatsStore } from './stats' import { useRouter } from 'vue-router' export const useChartsStore = defineStore( @@ -916,6 +917,9 @@ export const useChartsStore = defineStore( }) watch(activePlt, (pre, post) => { console.log('Active PLT Changed', pre, post) + // refresh stats when the active plot changes + const statsStore = useStatsStore() + statsStore.toggleSeriesStatistics(showStatistics.value) updateRouteAfterPlotChange() }) watch(symbology, () => { diff --git a/frontend/src/views/DistanceCharts.vue b/frontend/src/views/DistanceCharts.vue index 7d8d2c3..f0e8ecd 100644 --- a/frontend/src/views/DistanceCharts.vue +++ b/frontend/src/views/DistanceCharts.vue @@ -53,7 +53,9 @@