Are you an AI agent?

ReferenceLine

import { ReferenceLine } from '@wick-charts/react';
 
<ReferenceLine value={baseline} label='baseline' />

A straight reference line across the plot — a horizontal threshold / baseline pinned to a value, or a vertical event boundary pinned to a time (mutually exclusive). Renders on the chart's overlay layer *above* the series and stays out of the series model, so it never affects the Y-range autoscale, tooltip, or legend.

tsx
<ReferenceLine value={0.5} label="alert" color="#f0556a" />
<ReferenceLine time={deployMs} label="deploy" />

Props

value?number

Horizontal line at this Y data value. Mutually exclusive with ReferenceLineProps.time.

time?TimeValue

Vertical line at this time (epoch ms or Date). Mutually exclusive with ReferenceLineProps.value.

color?default the theme line colorstring

Line and label-chip accent color. Default: the theme line color.

label?string

Optional text label drawn in an annotation chip at the line's near end.

style?default 'dashed'ReferenceLineStyle

Dash style. Default: 'dashed'.

width?default 1number

Stroke width in CSS pixels. Default: 1.

scale?default the default scalestring

Named Y scale (ChartContainer scales) the value maps through. Default: the default scale.