Skip to content

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

feat: added tooltip formatting for suffix

TzeYiing381361641d48
diff --git a/studio/components/ui/Charts/StackedBarChart.tsx b/studio/components/ui/Charts/StackedBarChart.tsx
index 099e96777ae..ed8b0ea51d9 100644
--- a/studio/components/ui/Charts/StackedBarChart.tsx
+++ b/studio/components/ui/Charts/StackedBarChart.tsx
@@ -107,10 +107,12 @@ const StackedBarChart: React.FC<Props> = ({
: undefined
}
formatter={(value: number) => {
+ let val: string = String(value)
if (variant === 'percentages') {
- return precisionFormatter(value * 100, 1) + '%'
+ val = precisionFormatter(value * 100, 1) + '%'
}
- return value
+ val += (format || '')
+ return val
}}
cursor={false}
labelClassName="text-white"