Skip to examples
Browse analysis capabilities

Events & crossings / ANNOTATION GUIDE

crossing

Find upward and downward threshold crossings, or intersections of two unstacked series.

01 / EXPLORE

See it in action.

Compare parameter variations. Switch to Code to copy an example with the active theme.

Default configuration · Line Chart

Two-series intersections · Line Chart

Upward crossings only · Line Chart

Downward crossings only · Line Chart

02 / CONFIGURE

Make it yours.

Add this configuration to the annotations array in your chart JSON.

Configuration

PropertyTypeRequiredDefaultDescription
type'crossing'required—Exact annotation type; keep the spelling and capitalization shown here.
thresholdnumberoptional—Fixed finite reference; omit when comparing two series.
dataSelection | { series: [AnnotationData<T>, AnnotationData<T>] }optional—Optional threshold candidates, or exactly two complete source-series selectors.
direction'up' | 'down' | 'both'optional'both'Filter upward crossings, downward crossings, or both.
pulsebooleanoptionalfalseAnimate the marker halo; respects reduced-motion preferences.
labelstringoptional—Override the computed label; use an empty string to hide it.
styleAnnotationStyle<'crossing'>optional—Reuse the shared style definition with the fields supported by this annotation type.

03 / CHART SUPPORT

Choose a supported chart.

One example for each supported chart type. The default chart is shown above; the remaining charts use the same annotation configuration.

Calculation rules & limits

  • Line and area only, with unstacked series. Use either a finite threshold or exactly two source-series selectors.
  • Missing observations break crossings. Direction compares the first selected series against the second.
Full configuration reference

crossing · Area Chart

Example theme

Shared with Theme Studio. Applies to chart and annotation examples.

Default theme

Preset theme

theme.json
{
  "id": "default",
  "label": "Default theme",
  "baseTheme": "default"
}

Copied examples include this theme. Your selection is saved in this browser.