Enode — API Reference
    Preparing search index...
    • Daily wellness trend with a usual-range band. Renders gridlines + value ticks, the band, a line through the check-ins (dashed across skipped days), and one dot per check-in; the highlightIndex dot (the latest check-in) gets a ring.

      Parameters

      • domain: {
            ariaLabel: string;
            axisLabels: readonly { index: number; text: string }[];
            className?: string;
            days: readonly WellnessTrendChartDay[];
            domain: { max: number; min: number };
            highlightIndex?: number | null;
            hoveredIndex?: number | null;
            onHoveredIndexChange?: (index: number | null) => void;
            yTicks: readonly number[];
        }

        the value range the plot spans. Fixed rather than fitted, so a steady athlete's line doesn't turn a one-point wobble into a cliff.

        • ariaLabel: string

          One-sentence summary for assistive tech — the chart itself is visual.

        • axisLabels: readonly { index: number; text: string }[]

          Date ticks under the plot, by day index. Pre-formatted by the caller.

        • OptionalclassName?: string
        • days: readonly WellnessTrendChartDay[]
        • domain: { max: number; min: number }
        • OptionalhighlightIndex?: number | null
        • OptionalhoveredIndex?: number | null

          The hovered day, when a caller links this chart to another over the same days; omit to let the chart track its own.

        • OptionalonHoveredIndexChange?: (index: number | null) => void
        • yTicks: readonly number[]

      Returns Element