Skip to content
PreviewA month of requests per second. Point at the plot, tap it or use the arrow keys to read a day.

Chart

labelrequired
string
What the chart counts ("Requests per day"): its name starts with it.
xrequired
readonly (string | number | Date)[]
The rows, oldest first: days as yyyy-mm-dd, timestamps, or names.
size
"sm" | "md" | "lg"
Default: "md"
sm 128px, md 192px, lg 256px, usually with 3, 4 and 5 rules.
unit
string
A symbol every number carries (ms, %).
noun
readonly [one: string, many: string]
What the name calls a row, ["service", "services"]; dates name themselves.
partialLast
boolean | ChartPartialLast
buckets
boolean
Each row is a period (a day, a week) with its own equal slot: a step mark holds its value across the slot, and the reading, its rule and the date labels sit in the slot's middle. For counts per period.
keepOneSeries
boolean
Keep the last visible series on when filtering in the legend.
highlight
Key | null
Default: null
The React key of the mark to light, as when pointing at a legend item.
sum
boolean
Default: true
Read a stack's sum as its Total, under its parts. off where a mark of the chart's own is the total.
readoutDescription
string
ID of optional instructions for the interactive plot.
rootStyle
RootStyle<ChartKnobs>

Rest props go to HTMLAttributes<HTMLDivElement>.

State machine

PreviewRead requests over the month.