ChartAnnotation
Persistent inline chart marker for agent-noted anomalies, threshold crossings, or notable observations with semantic color coding
import { ChartAnnotation } from "@nodus/design-system/patterns"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
typereq | AnnotationType | — | anomaly | threshold | observation |
labelreq | string | — | Short annotation label |
description | string | — | Extended detail shown on expand |
x | string | number | — | Horizontal position (pixel or data key) |
y | number | — | Vertical position in pixels from top |
lastAnalyzedAt | string | — | ISO — when the agent produced this annotation. Used to derive staleness. |
stalenessThresholdMs | number | 3600000 | Staleness threshold in ms (default 1h). Stale annotations show a gold ring. |
staleAnalysisAge | string | — | Pre-formatted age override (e.g. '4h 12m') — bypasses lastAnalyzedAt calculation. |
typerequiredType
AnnotationTypeDefault —anomaly | threshold | observation
labelrequiredType
stringDefault —Short annotation label
descriptionType
stringDefault —Extended detail shown on expand
xType
string | numberDefault —Horizontal position (pixel or data key)
yType
numberDefault —Vertical position in pixels from top
lastAnalyzedAtType
stringDefault —ISO — when the agent produced this annotation. Used to derive staleness.
stalenessThresholdMsType
numberDefault 3600000Staleness threshold in ms (default 1h). Stale annotations show a gold ring.
staleAnalysisAgeType
stringDefault —Pre-formatted age override (e.g. '4h 12m') — bypasses lastAnalyzedAt calculation.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?