Enode — API Reference
    Preparing search index...
    • A larger trend chart for a single metric across recent sessions, with a value axis (gridlines + ticks) and a date axis. Pure/presentational — the caller supplies formatValue (it owns units/locale) and color (a metric-category colour tinting the line, fill and dots). Renders nothing below two finite points.

      Parameters

      • __namedParameters: {
            className?: string;
            color: string;
            dotSize?: number;
            formatValue: (value: number) => string;
            highlightIndex?: number;
            kind?: "line" | "bars";
            mutedIndexes?: readonly number[];
            onPointPress?: (index: number) => void;
            pointLabel?: (index: number) => string;
            points: readonly MetricTrendPoint[];
            showAxes?: boolean;
            zeroBaseline?: boolean;
        }
        • OptionalclassName?: string
        • color: string
        • OptionaldotSize?: number

          Diameter (px) of the per-point dots. Defaults to 6.

        • formatValue: (value: number) => string
        • OptionalhighlightIndex?: number

          Slot index (into points) whose dot is drawn with a surrounding ring — marks that point as special (e.g. the live session). A null slot draws no dot and therefore no ring.

        • Optionalkind?: "line" | "bars"

          A smoothed line with dots (default), or one bar per session from a zero baseline — same axes, slots and point controls. Bars always start at 0 (a bar's length is its value), so zeroBaseline is implied.

        • OptionalmutedIndexes?: readonly number[]

          Slot indexes whose dots render smaller and faded — points that count less than the rest of the series (e.g. warm-up attempts on the live board).

        • OptionalonPointPress?: (index: number) => void

          Makes every drawn point a control: fires with the pressed point's slot index. A point is pressed anywhere in its column of the plot, so the target is far larger than the dot. Without it the chart is a picture and hidden from assistive technology.

        • OptionalpointLabel?: (index: number) => string

          The accessible name of a point's control (e.g. "Set 3, 0.62 m/s"). Required for the controls of onPointPress to say what they open.

        • points: readonly MetricTrendPoint[]
        • OptionalshowAxes?: boolean

          Show the value + x-axis at all sizes. Default gates them to the chart's own width (via @container), matching the compact→annotated card transition.

        • OptionalzeroBaseline?: boolean

          Anchor the value axis at 0 (baseline) instead of the data's own minimum, so the fill reads as magnitude-from-zero rather than a zoomed window.

      Returns Element | null