data | Record<string, unknown>[] · requiredRows to visualize. Each row may contain the x field and one or more series fields. |
|---|
xKey | string · requiredField name read from each data row for the shared x scale. |
|---|
series | SeriesDef[] · requiredMark definitions created by helpers such as bar(), line(), area(), or dot(). Build a fresh array for each Chart. |
|---|
height | number · default 300Chart height in CSS pixels. |
|---|
margin | Partial<ChartMargin> · default {top: 24, right: 24, bottom: 32, left: 48}Plot inset overrides in CSS pixels for top, right, bottom, and left. |
|---|
yBaseline | 'auto' | 'zero' | 'data' · default 'auto'How Chart derives the y-domain when yDomain is omitted: mark-aware zero/headroom, symmetric around zero, or tight to the data extent. |
|---|
yDomain | [number, number]Explicit y-domain. When set, it takes precedence over yBaseline, automatic headroom, and scale nicening. |
|---|
xDomain | [number, number]Explicit x-domain for numeric scales, including an empty streaming window. Categorical scales ignore it. |
|---|
grid | ReactNode |
|---|
axes | ReactNodeAxis content rendered after the series, normally one or more ChartAxis elements. |
|---|
legend | boolean | ChartLegendProps · default falseSet true for a derived bottom legend, or pass items, position, and alignment. |
|---|
tooltip | boolean | Omit<ChartTooltipProps, 'series'> · default falseSet true for the grouped pointer tooltip, or pass render and presentation options. |
|---|
interactions | ReactNodeInteraction overlays rendered above the pointer-capture layer. |
|---|
children | ReactNodeAdditional SVG content rendered after the built-in tooltip for advanced composition. |
|---|
title | stringVisible heading and accessible name for the chart image. A localized fallback is derived when omitted. |
|---|
subtitle | stringVisible supporting text that also describes the chart image. |
|---|
ref | Ref<HTMLDivElement>Ref forwarded to the root chart container. |
|---|
xstyle | StyleXStylesStyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value, not an inline style object like style={{}}. |
|---|
className | stringCSS class name appended to the root chart container. |
|---|
style | CSSPropertiesInline styles merged onto the root chart container after the component styles. |
|---|