Skip to content

Chart card

A graph of one or more series: a line, columns, or a stream of parts around a centre line. Scrub across it to read a point.

4 samples, each at every size that draws differently, then in chat, in the light theme, and as a ring where it has a headline.

chart · paused, medium size
Medium
chart · paused, tall size
Tall
chart · paused, large size
Large
chart · paused, in chat
In chat
chart · paused, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium, so they aren't shown. Only the empty space changes.

chart, medium size
Medium
chart, large size
Large
chart, in chat
In chat
chart, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium. Tall draws the same as medium, so they aren't shown. Only the empty space changes.

chart · scrub, medium size
Medium
chart · scrub, large size
Large
chart · scrub, in chat
In chat
chart · scrub, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium. Tall draws the same as medium, so they aren't shown. Only the empty space changes.

chart · stream, medium size
Medium
chart · stream, tall size
Tall
chart · stream, large size
Large
chart · stream, in chat
In chat
chart · stream, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium, so they aren't shown. Only the empty space changes.

Every card also takes the fields all cards share.

FieldTypeWhat it does
type'chart'
unit?string
max?number
series{ name: string; points: number[]; tone?: Tone; total?: number }[]total: the service’s own figure, when summing the points would disagree with the headline
headline?stringthe big number, when the latest point isn’t it (“31 plays”)
span?stringe.g. “last 10 min”
window?stringwhat the columns cover, under them: “last 24 h”
from?numberwhen the first point is (ms), so scrubbing can say when
to?numberwhen the last point is
labels?string[]or a name per point, for charts that aren’t over time
style?'line' | 'bars' | 'stream'bars: a column per point, the series stacked in order · stream: the same parts flowing around a centre line
facts?{ label: string; value?: string }[]quiet chips under the chart: what the number is made of
factsNote?stringwhat those chips are: “Most blocked · last 24 h”

Pi-hole · Plex (Tautulli)