Baselines
Horizontal marks added to charts to mark major comparative values of a series like the average, median, min or max.
Last updated
Horizontal marks added to charts to mark major comparative values of a series like the average, median, min or max.
Last updated
ChartSQL introduces baseline marks/lines to add context and reference points to chart visualizations. These lines represent significant values such as the average, min, max, median of a series. Baselines provide visual cues for comparison against a common or target value.
See Baselines examples and the @baselines and @baseline-types directives.
@baselines
: Specifies the series to which baselines are applied and indicates the presence of baseline lines in the chart.
@baseline-types
(optional): Sets the type of baselines on the specified series. If omitted, the default type, 'average', is applied. Supported types include: 'average', 'min', 'max', or 'median'
A column chart showcasing average sales with a baseline for the average value:
A chart with multiple baselines with specified types:
Without specifying types or labels, baselines default to drawing an 'average' line across the specified series in the chart.