Skip to main content

Overview

Headline numbers display key summary metrics prominently at the top of your chart. They’re ideal for highlighting the most important value in your data at a glance.

Display mode

headlineNumbers.show
'current' | 'average' | 'total' | 'conversion' | 'none'
default:"none"
How to calculate the headline number: - 'current' - The last value in the series - 'average' - The arithmetic mean of the series - 'total' - The sum of all values in the series - 'conversion' - The ratio between the first and last values (shown as a percentage) - 'none' - Don’t show any headline numbers

Current value

Show the most recent value in your data:
Best for: Time series showing current state, latest measurements

Average

Show the mean of all values:
Best for: Understanding typical values, smoothing out volatility

Total

Show the sum of all values:
Best for: Cumulative data, total revenue, aggregate counts

Conversion rate

Show the percentage change from first to last value:
Conversion rate is designed for funnel charts and calculates the ratio between the first and last values as a percentage.
Best for: Funnel conversions, efficiency metrics

Comparison

headlineNumbers.compareWith
'previous' | 'first' | 'none'
default:"none"
Show a trend arrow comparing the headline value to another value: - 'previous' - Compare to the previous value in the series - 'first' - Compare to the first value in the series - 'none' - Don’t show a comparison

Compare with previous

Show how the headline value has changed from the previous data point:

Compare with first

Show how the headline value has changed from the first data point:
Best for: Growth since start, year-over-year changes

Size

headlineNumbers.size
'auto' | 'small' | 'medium' | 'large'
default:"auto"
Size of the headline metric: - 'auto' - Automatically choose the appropriate size based on chart dimensions - 'small' - Small font size - 'medium' - Medium font size - 'large' - Large font size

Multiple series

When your chart has multiple data series, a headline number is shown for each series:

Complete example