Skip to content

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

FE-1862 Report Chart: Always show tooltip values (#39160)

Jordi Enric133271894cf7
diff --git a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx
index abddab6bd64..b5c8134bf45 100644
--- a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx
+++ b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx
@@ -214,12 +214,9 @@ const CustomTooltip = ({
>
<p className="font-medium">{dayjs(timestamp).format(DateTimeFormats.FULL_SECONDS)}</p>
<div className="grid gap-0">
- {payload
- .reverse()
- .filter((entry: any) => entry.value !== 0)
- .map((entry: any, index: number) => (
- <LabelItem key={`${entry.name}-${index}`} entry={entry} />
- ))}
+ {payload.reverse().map((entry: any, index: number) => (
+ <LabelItem key={`${entry.name}-${index}`} entry={entry} />
+ ))}
{active && showTotal && (
<div className="flex md:flex-col gap-1 md:gap-0 text-foreground mt-1">
<span className="flex-grow text-foreground-lighter">Total</span>