diff --git a/ui/app/workspace/dashboard/components/charts/chartCard.tsx b/ui/app/workspace/dashboard/components/charts/chartCard.tsx
index b93974db2d5..ce0552595f1 100644
--- a/ui/app/workspace/dashboard/components/charts/chartCard.tsx
+++ b/ui/app/workspace/dashboard/components/charts/chartCard.tsx
@@ -1,5 +1,6 @@
import { Card } from "@/components/ui/card";
import { Skeleton } from "@/components/ui/skeleton";
+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import type { ReactNode } from "react";
@@ -13,10 +14,21 @@ interface ChartCardProps {
className?: string;
total?: ReactNode;
totalLabel?: string;
+ totalTooltip?: ReactNode;
}
-function TotalChip({ total, totalLabel, testId }: { total: ReactNode; totalLabel?: string; testId?: string }) {
- return (
+function TotalChip({
+ total,
+ totalLabel,
+ totalTooltip,
+ testId,
+}: {
+ total: ReactNode;
+ totalLabel?: string;
+ totalTooltip?: ReactNode;
+ testId?: string;
+}) {
+ const chip = (
{total}
);
+
+ if (totalTooltip === undefined || totalTooltip === null) {
+ return chip;
+ }
+
+ return (
+