From 52a952f41eb8571f3e57ccfe92b65dcfd3585f9c Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 2 Dec 2024 17:57:34 +0000 Subject: [PATCH] Add legendUnit property to DashboardChartComponent and MetricExplorer for enhanced chart configuration --- .../Components/Dashboard/Components/DashboardChartComponent.tsx | 1 + Dashboard/src/Components/Metrics/MetricExplorer.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/Dashboard/src/Components/Dashboard/Components/DashboardChartComponent.tsx b/Dashboard/src/Components/Dashboard/Components/DashboardChartComponent.tsx index 623a1e6c37..7a2023d1f7 100644 --- a/Dashboard/src/Components/Dashboard/Components/DashboardChartComponent.tsx +++ b/Dashboard/src/Components/Dashboard/Components/DashboardChartComponent.tsx @@ -126,6 +126,7 @@ const DashboardChartComponentElement: FunctionComponent = ( description: props.component.arguments.chartDescription || undefined, metricVariable: undefined, legend: undefined, + legendUnit: undefined, } }] : [], diff --git a/Dashboard/src/Components/Metrics/MetricExplorer.tsx b/Dashboard/src/Components/Metrics/MetricExplorer.tsx index 4f9a9bdf81..a57f624794 100644 --- a/Dashboard/src/Components/Metrics/MetricExplorer.tsx +++ b/Dashboard/src/Components/Metrics/MetricExplorer.tsx @@ -29,6 +29,7 @@ const MetricExplorer: FunctionComponent = (): ReactElement => { title: "", description: "", legend: "", + legendUnit: "", }, metricQueryData: { filterData: {