Skip to examples
Browse analysis capabilities

Thresholds & targets / ANNOTATION GUIDE

thresholdHighlight

Draw a threshold reference and recolor the portion above or below it.

01 / EXPLORE

See it in action.

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

Default configuration · Line Chart

Below threshold · Line Chart

Include the threshold value · Line Chart

02 / CONFIGURE

Make it yours.

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

Configuration

PropertyTypeRequiredDefaultDescription
type'thresholdHighlight'required—Exact annotation type; keep the spelling and capitalization shown here.
thresholdnumberrequired—Finite numeric reference value.
direction'above' | 'below'optional'above'Choose which side of the threshold to emphasize.
inclusivebooleanoptionalfalseInclude observations equal to the threshold.
dataSelection | TableMappingoptional—Optional chart selection; tables require a calculation mapping.
labelstringoptional—Override the computed label; use an empty string to hide it.
styleAnnotationStyle<'thresholdHighlight'>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 selections must include complete series; partial-series selection is not supported.
  • Tables require data.field for calculation; data.row limits candidates and data.column selects the emphasized column.
Full configuration reference

thresholdHighlight · Area Chart

Column Chart

Chart type guide

thresholdHighlight · Column Chart

thresholdHighlight · Bar Chart

Scatter Chart

Chart type guide

thresholdHighlight · Scatter Chart

thresholdHighlight · Table

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.