headline section.
color), and it takes the place of the pill legend. The y variable must be
numeric, and 'total' on position: 'fill' bars draws nothing, since every stack sums to 100%.
On a pie or donut the headline is one grand total. Only show: 'total' draws anything there, and
only on a position: 'fill' layer, which is how a pie is built.
Options
Which aggregate to display:
'total'— the sum of the group’s values.'average'— the arithmetic mean.'current'— the last value (useful for time series).'conversion'— accepted by the type but produces no headline.'none'— no headline.
Reference point for the trend indicator. The trend appears only with
show: 'current' on a datetime x axis, and shows the change from the
reference to the latest value:'previous'— the preceding observation.'first'— the first observation in the group.'none'— the default; acurrentheadline still trends, against the first observation.
Visual size.
'auto' picks the largest of the three whose strip fits the
container width.Where the headline sits.
'above' places it in the header region. 'center'
places it in the hole of a donut. A pie without
an inner radius has no hole, and a cartesian graph has no center, so there
'center' behaves as 'above'.In a donut’s center
Pairposition: 'center' with a donut to put the total in the hole:
Related
- Pie & donut — the donut’s hole, home of a centerd headline
- Number format — how the headline value is formatted
- Styling —
style.headlineandstyle.headline.itempaint the strip and its cards

