Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: added fix for all series in tooltip sync mode (#11197)

Abhi kumara7690bdaa28c
diff --git a/frontend/src/lib/uPlotV2/components/Tooltip/Tooltip.tsx b/frontend/src/lib/uPlotV2/components/Tooltip/Tooltip.tsx
index 61f793c5fe..44abc9c237 100644
--- a/frontend/src/lib/uPlotV2/components/Tooltip/Tooltip.tsx
+++ b/frontend/src/lib/uPlotV2/components/Tooltip/Tooltip.tsx
@@ -24,10 +24,15 @@ export default function Tooltip({
);
const showHeader = showTooltipHeader || activeItem != null;
- // With a single series the active item is fully represented in the header —
- // hide the divider and list to avoid showing a duplicate row.
- const showList = tooltipContent.length > 1;
- const showDivider = showList && showHeader;
+ // A single row collapses into the header when it's the active item, but
+ // must stay in the list when there's no active item (e.g. sync-driven
+ // tooltips with no focused series) — otherwise the row would vanish.
+ const showList =
+ tooltipContent.length > 1 ||
+ (tooltipContent.length === 1 && activeItem == null);
+ // The divider separates the active row in the header from the list; with
+ // no active item it has nothing to separate.
+ const showDivider = showList && showHeader && activeItem != null;
return (
<div
diff --git a/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/syncDisplayHook.ts b/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/syncDisplayHook.ts
index a6833b1436..f069f55cd1 100644
--- a/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/syncDisplayHook.ts
+++ b/frontend/src/lib/uPlotV2/plugins/TooltipPlugin/syncDisplayHook.ts
@@ -137,7 +137,7 @@ function applyReceiverSync({
if (commonKeys.length === 0) {
uPlotInstance.setSeries(null, { focus: false });
- return [];
+ return noMatchResult;
}
if ((uPlotInstance.cursor.left ?? -1) < 0) {