Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix: Add number formatter to Chart Header (#32600)

Jordi Enricda98c1b70250
diff --git a/apps/studio/components/ui/Charts/BarChart.tsx b/apps/studio/components/ui/Charts/BarChart.tsx
index addd36773ad..aa2ec9766b6 100644
--- a/apps/studio/components/ui/Charts/BarChart.tsx
+++ b/apps/studio/components/ui/Charts/BarChart.tsx
@@ -111,7 +111,11 @@ const BarChart = ({
title={title}
format={format}
customDateFormat={customDateFormat}
- highlightedValue={resolvedHighlightedValue}
+ highlightedValue={
+ typeof resolvedHighlightedValue === 'number'
+ ? numberFormatter(resolvedHighlightedValue, valuePrecision)
+ : resolvedHighlightedValue
+ }
highlightedLabel={resolvedHighlightedLabel}
minimalHeader={minimalHeader}
/>