Skip to content
ArcadiaDesign
Requests per second in a stack of three regions, the largest at the base.

TSX

An area shows how an amount changed over time when the amount under the line matters: requests served, storage used. It always starts at zero, because its wash is the value; a measure that should not start at zero is a line.

A plot holds one area, a stack, or two that overlap; a third series is a line. A stack (stacked on each of its areas) shows the parts of a whole that adds up, such as requests by region, never a sum that means nothing, such as response times. The largest part sits at the base and the others stack above it by size. Keep a stack to six parts and sum the rest into one named Other, painted chartColor(7).

Examples

One series

The wash is the series colour at 28% under the line's highest point, fading to nothing at the baseline.

Crossing zero

Above and below the solid zero rule, the wash fades toward zero, in the one colour of its series.

A gap in a stack

A row that any part of a stack misses is a gap in every part: the whole is unknown there, so nothing stands in for it.

The Americas did not report on September 24: on that row the card reads No data for them and for the total.

Each area adds its label, its first and last value and the change to its chart's name, in the order of its stack, and a stack adds its total, so the whole is heard as well as its parts: "Requests per second: 30 days; Europe from 323 to 403, up 25%; Americas from 184 to 300, up 63%; Asia from 116 to 170, up 47%; Total from 623 to 873, up 40%".

With Readout the plot is a slider over its rows, and its value text reads the row the way the card does, each part and then the total: "Tue, Oct 6: Europe 403, Americas 300, Asia 170, Total 873".

Area

stacked
boolean
On the other stacked areas, the largest at the base.
labelrequired
string
The series' name.
valuesrequired
readonly (number | null | undefined)[]
A value per row of x; null is a gap.
colorrequired
string
The paint of the slot its entity owns: chartColor(1).
curve
"monotone" | "straight" | "step"Default "monotone"
straight for counts and sparse rows, step for a level that holds until it changes.