Chart
import { Chart, Grid, XAxis, YAxis, Legend, Readout, chartColor, fmtTick } from "@arcadia/ui/charts";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" sm128px,md192px,lg256px, 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
stepmark 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>.