ChartTooltip
Recharts-compatible tooltip that distinguishes user-selected vs. agent-highlighted data points with semantic color treatment
import { ChartTooltip } from "@nodus/design-system/patterns"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
fieldsreq | TooltipField[] | — | Data fields to display in tooltip |
source | TooltipSource | "user" | user | agent — drives header color and label |
title | string | — | Tooltip header line |
timestamp | string | — | Timestamp label for the hovered point |
staleAnalysisAge | string | — | When source=agent, shows a gold stale warning row (e.g. '4h 12m'). Does not affect data display. |
fieldsrequiredType
TooltipField[]Default —Data fields to display in tooltip
sourceType
TooltipSourceDefault "user"user | agent — drives header color and label
titleType
stringDefault —Tooltip header line
timestampType
stringDefault —Timestamp label for the hovered point
staleAnalysisAgeType
stringDefault —When source=agent, shows a gold stale warning row (e.g. '4h 12m'). Does not affect data display.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?