From e548566854d810dec67465d6b1558eebebc32c7a Mon Sep 17 00:00:00 2001 From: csawatzky Date: Thu, 27 Feb 2025 11:24:29 -0600 Subject: [PATCH 1/2] added true to fix the tooltip on the chart --- src/charts/measurementCharts/MultiLineGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charts/measurementCharts/MultiLineGraph.tsx b/src/charts/measurementCharts/MultiLineGraph.tsx index 6e064e0..7b602c7 100644 --- a/src/charts/measurementCharts/MultiLineGraph.tsx +++ b/src/charts/measurementCharts/MultiLineGraph.tsx @@ -208,7 +208,7 @@ export default function MultiLineGraph(props: Props) { {...props} valueFormatter={value => { return describer.convertWithUnits( - roundTo(parseFloat(String(value)), 2) + roundTo(parseFloat(String(value)), 2), true ); }} /> From c03869adffd49be8eef4fc0b8e2fd28fa64a3e13 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Thu, 27 Feb 2025 11:26:11 -0600 Subject: [PATCH 2/2] added to the area graph as well --- src/charts/measurementCharts/AreaGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charts/measurementCharts/AreaGraph.tsx b/src/charts/measurementCharts/AreaGraph.tsx index 9337fc1..be40280 100644 --- a/src/charts/measurementCharts/AreaGraph.tsx +++ b/src/charts/measurementCharts/AreaGraph.tsx @@ -162,7 +162,7 @@ export default function AreaGraph(props: Props) { } else { str = describer.convertWithoutUnits( roundTo(parseFloat(String(value)), 2), - // newStructure + true ); } return str + describer.GetUnit();