Skip to content

Charts

Copy editable source into an initialized application:

Terminal window
pnpm dlx @simurgh-ui/cli add chart

For package consumption, import from the component subpath and load its optional recipe CSS:

import {
ChartProps,
ChartRoot,
ChartPlot,
ChartGrid,
ChartXAxis,
ChartYAxis,
ChartLegend,
ChartTooltip,
ChartCrosshair,
ChartBrush,
ChartDataTable,
LineChart,
AreaChart,
BarChart,
PieChart,
DonutChart,
ScatterChart,
BubbleChart,
RadarChart,
HeatmapChart,
ComboChart,
} from '@simurgh-ui/react/chart';
import '@simurgh-ui/styles/chart.css';
import {
ChartRoot,
ChartPlot,
ChartGrid,
ChartXAxis,
ChartYAxis,
ChartLegend,
ChartTooltip,
ChartCrosshair,
ChartBrush,
LineChart,
AreaChart,
BarChart,
PieChart,
DonutChart,
ScatterChart,
BubbleChart,
RadarChart,
HeatmapChart,
ComboChart,
} from '@simurgh-ui/vue/chart';
import '@simurgh-ui/styles/chart.css';
import {
ChartBaseComponent,
ChartRootComponent,
ChartPlotComponent,
ChartGridDirective,
ChartXAxisDirective,
ChartYAxisDirective,
ChartLegendDirective,
ChartTooltipDirective,
ChartCrosshairDirective,
ChartBrushDirective,
LineChartComponent,
AreaChartComponent,
BarChartComponent,
PieChartComponent,
DonutChartComponent,
ScatterChartComponent,
BubbleChartComponent,
RadarChartComponent,
HeatmapChartComponent,
ComboChartComponent,
} from '@simurgh-ui/angular/chart';
import '@simurgh-ui/styles/chart.css';

Omit the component stylesheet for fully headless styling. CLI-copied components use the local path written to simurgh.json and the copied application styles instead of these package imports.

Live component Line chart
Monthly activity

Activity rises overall across five months. Values: 5 points, minimum 32, maximum 72, increasing.

value: 32

The optional component stylesheet provides a complete default recipe, including visual hierarchy and interaction states. Consumers can override semantic tokens or omit the recipe.

Turnkey charts own a figure, caption, accessible description, responsive viewport, SVG or Canvas plot, keyboard target, tooltip, legend, and optional bounded data table. The composable APIs expose ChartRoot, ChartPlot, grid, axes, legend, tooltip, crosshair, and brush equivalents.

Controlled state remains the application’s source of truth and must be updated from every change event. Uncontrolled state reads its default only when the component mounts. Do not pass both forms of the same state at once.

FrameworkExact state contract and reset behavior
ReactNo public controlled/uncontrolled state pair is exposed.
VueControlled: v-model:hiddenSeries (hiddenSeries + update:hiddenSeries). No uncontrolled prop is exposed. Reset the model ref to its initial value; reset uncontrolled state with a changed Vue :key.
AngularControlled two-way binding: [(hiddenSeries)] (hiddenSeries + hiddenSeriesChange). Angular exposes no separate default input; initialize and reset the bound class field explicitly.

Vue

<script setup lang="ts">
import { ref } from 'vue';
const initial = '';
const state = ref(initial);
const resetKey = ref(0);
</script>
<ChartRoot v-model:hiddenSeries="state"></ChartRoot>
<button @click="state = initial">Reset controlled</button>

Angular

initial = '';
hiddenSeries = this.initial;
reset() { this.hiddenSeries = this.initial; }
<simurgh-chart [(hiddenSeries)]="hiddenSeries"></simurgh-chart>
<button type="button" (click)="reset()">Reset</button>
  • Browse the chart gallery for a live result and copy-ready React code for every chart type.
  • Add the same stack ID to bar or area series for positive/negative stacking.
  • Set orientation="horizontal" on React BarChart for horizontal bars.
  • Use ComboChart with per-series type values for mixed marks.
  • Create high-rate numeric input with createChartStream({ capacity, dimensions }) from @simurgh-ui/core/chart-stream and append equal-length typed columns.
  • Invalid numeric values become gaps; non-positive logarithmic values and negative pie values are omitted.
  • Empty valid data renders emptyContent.

Preserve the documented composition and accessible names when wrapping or restyling this component. See accessibility and RTL guidance for keyboard, focus, labeling, and directionality requirements.

  • React exports: ChartProps, ChartRoot, ChartPlot, ChartGrid, ChartXAxis, ChartYAxis, ChartLegend, ChartTooltip, ChartCrosshair, ChartBrush, ChartDataTable, LineChart, AreaChart, BarChart, PieChart, DonutChart, ScatterChart, BubbleChart, RadarChart, HeatmapChart, ComboChart
  • Vue exports: ChartRoot, ChartPlot, ChartGrid, ChartXAxis, ChartYAxis, ChartLegend, ChartTooltip, ChartCrosshair, ChartBrush, LineChart, AreaChart, BarChart, PieChart, DonutChart, ScatterChart, BubbleChart, RadarChart, HeatmapChart, ComboChart
  • Angular exports: ChartBaseComponent, ChartRootComponent, ChartPlotComponent, ChartGridDirective, ChartXAxisDirective, ChartYAxisDirective, ChartLegendDirective, ChartTooltipDirective, ChartCrosshairDirective, ChartBrushDirective, LineChartComponent, AreaChartComponent, BarChartComponent, PieChartComponent, DonutChartComponent, ScatterChartComponent, BubbleChartComponent, RadarChartComponent, HeatmapChartComponent, ComboChartComponent

Import these public symbols from the component subpath shown in Installation. Framework-specific props, events, slots, directives, methods, defaults, and native-attribute behavior belong in the API tables on this page; use the linked source only to verify the current implementation.

React API reference

An inherited-attributes entry means the component accepts the complete named React native interface, including its event handlers and ARIA and data attributes. Remaining attributes are forwarded to the rendered element unless the component behavior described on this page overrides them.

Exported type: Omit<HTMLAttributes<HTMLElement>, "title"> & { data?: readonly T[]; stream?: ChartStream<string>; x?: ChartAccessor<T>; y?: ChartAccessor<T, number>; series?: readonly ChartSeries<T>[]; accessibility: ChartAccessibility; width?: number; height?: number; xScale?: ChartScaleType; yScale?: Exclude<ChartScaleType, "band">; xDomain?: ChartDomain; yDomain?: ChartDomain; renderMode?: ChartRenderMode; canvasThreshold?: number; hiddenSeries?: readonly string[]; defaultHiddenSeries?: readonly string[]; onHiddenSeriesChange?: (series: string[]) => void; emptyContent?: ReactNode; orientation?: "vertical" \| "horizontal"; innerRadius?: number; }.

Inherited attributes: HTMLAttributes<HTMLElement>.

PropTypeDefault / requirement
childrenReactNodeundefined
heightnumberRequired
widthnumberRequired

Inherited attributes: SVGAttributes<SVGSVGElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Inherited attributes: SVGAttributes<SVGGElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Inherited attributes: SVGAttributes<SVGGElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Inherited attributes: SVGAttributes<SVGGElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Inherited attributes: HTMLAttributes<HTMLDivElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Inherited attributes: HTMLAttributes<HTMLDivElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Inherited attributes: SVGAttributes<SVGGElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Inherited attributes: SVGAttributes<SVGRectElement>.

PropTypeDefault / requirement
childrenReactNodeundefined

Complete props type: { data: readonly T[]; columns: readonly { label: string; value: ChartAccessor<T>; }[]; pageSize?: number; }.

PropTypeDefault / requirement
columnsreadonly { label: string; value: ChartAccessor<T>; }[]Required
datareadonly T[]Required
pageSizenumberundefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined

Complete props type: ChartProps<T>.

PropTypeDefault / requirement
accessibilityChartAccessibilityRequired
canvasThresholdnumberundefined
childrenReactNodeundefined
datareadonly T[]undefined
defaultHiddenSeriesreadonly string[]undefined
emptyContentReactNodeundefined
heightnumberundefined
hiddenSeriesreadonly string[]undefined
innerRadiusnumberundefined
onHiddenSeriesChange(series: string[]) => voidundefined
orientation"horizontal" | "vertical"undefined
renderModeChartRenderModeundefined
seriesreadonly ChartSeries<T>[]undefined
streamChartStream<string>undefined
widthnumberundefined
xChartAccessor<T>undefined
xDomainChartDomainundefined
xScaleChartScaleTypeundefined
yChartAccessor<T, number>undefined
yDomainChartDomainundefined
yScale"linear" | "time" | "log"undefined
Vue API reference

Boolean props without explicit defaults use Vue’s false default. Undeclared attributes follow the fallthrough behavior stated for each component.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

No emitted events.

Slots: default.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: default.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Vue attribute fallthrough is enabled for the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

EventPayload
update:hiddenSeriesstring[]

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

EventPayload
update:hiddenSeriesstring[]

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

EventPayload
update:hiddenSeriesstring[]

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

EventPayload
update:hiddenSeriesstring[]

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

EventPayload
update:hiddenSeriesstring[]

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

No emitted events.

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

EventPayload
update:hiddenSeriesstring[]

Slots: none.

Exposed methods: none.

Automatic fallthrough is disabled; attrs are manually forwarded to the rendered root.

No declared props.

EventPayload
update:hiddenSeriesstring[]

Slots: none.

Exposed methods: none.

Angular API reference

Inputs and outputs use their public template names. Public methods are callable through a template reference or ViewChild. Native attributes apply to the documented template root or directive host; they are not automatically forwarded through component hosts.

Attribute directive selector: none; behavior applies to its host element.

InputTypeDefault / requirement
datareadonly Datum[][]
streamChartStream<string> | undefinedundefined
xChartAccessor<Datum>undefined
yChartAccessor<Datum, number>undefined
seriesreadonly ChartSeries<Datum>[]undefined
accessibilityChartAccessibilityRequired
widthnumber640
heightnumber360
xScale"linear" | "time" | "band" | "log"'linear'
yScale"linear" | "time" | "log"'linear'
renderMode"auto" | "svg" | "canvas"'auto'
canvasThresholdnumber2000
hiddenSeriesreadonly string[]undefined
defaultHiddenSeriesreadonly string[][]
innerRadiusnumberundefined
emptyContentstring'No chart data'
OutputPayload
hiddenSeriesChangestring[]

Content projection: none.

Public method
tableValue(datum: Datum, value: ChartAccessor<Datum>, row: number): string
onKeydown(event: KeyboardEvent): void
toggleSeries(id: string): void

Component selector: simurgh-chart-root. The template’s first native element is ng-content. Angular host bindings: { class: 'simurgh-chart', 'data-slot': 'chart' }.

No inputs.

No outputs.

Content projection: default.

No public methods.

Component selector: simurgh-chart-plot. The template’s first native element is svg.

No inputs.

No outputs.

Content projection: default.

No public methods.

Attribute directive selector: [simurghChartGrid]; behavior applies to its host element.

No inputs.

No outputs.

Content projection: none.

No public methods.

Attribute directive selector: [simurghChartXAxis]; behavior applies to its host element.

No inputs.

No outputs.

Content projection: none.

No public methods.

Attribute directive selector: [simurghChartYAxis]; behavior applies to its host element.

No inputs.

No outputs.

Content projection: none.

No public methods.

Attribute directive selector: [simurghChartLegend]; behavior applies to its host element.

No inputs.

No outputs.

Content projection: none.

No public methods.

Attribute directive selector: [simurghChartTooltip]; behavior applies to its host element.

No inputs.

No outputs.

Content projection: none.

No public methods.

Attribute directive selector: [simurghChartCrosshair]; behavior applies to its host element.

No inputs.

No outputs.

Content projection: none.

No public methods.

Attribute directive selector: [simurghChartBrush]; behavior applies to its host element.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: simurgh-radar-chart. The template’s first native element is svg. Angular host bindings: { class: 'simurgh-chart', 'data-slot': 'chart' }.

InputTypeDefault / requirement
datareadonly Datum[][]
streamChartStream<string>undefined
yChartAccessor<Datum, number>Required
accessibilityChartAccessibilityRequired
widthnumber360
heightnumber360

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

Component selector: none. The component has no single native template root.

No inputs.

No outputs.

Content projection: none.

No public methods.

This component is not a form control and does not contribute a named value to FormData. Use it to structure or describe a form only when its purpose and accessibility guidance apply.

The table distinguishes component behavior from application-owned presentation. “Not supported” means there is no public state contract for that adapter; do not invent one with an undocumented attribute. Keep status and error messages accessible when they are rendered outside the component.

StateReactVueAngular
LoadingNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
EmptyNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
InvalidNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
Read-onlyNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
DisabledNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
ErrorNot supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.Not supported by this component API; handle this state in surrounding application UI.
Styling contract

The selectors below are used by the published component recipe or emitted consistently by an adapter. Treat these as the supported styling surface. Element order, anonymous wrappers, and undocumented descendants are implementation details and should not be targeted.

SurfaceStable hooks
Recipe classes.simurgh-chart
Stable DOM parts[data-slot="chart"]
Stable data attributes[data-part], [data-renderer], [data-series], [data-slot], [data-state], [data-table]
ARIA/state selectors used by the recipe[aria-pressed]
CSS custom properties consumed--simurgh-border, --simurgh-chart-axis, --simurgh-chart-grid, --simurgh-chart-tooltip, --simurgh-font-sans, --simurgh-foreground, --simurgh-hover, --simurgh-muted-foreground, --simurgh-radius, --simurgh-ring, --simurgh-shadow-sm, --simurgh-space-1, --simurgh-space-2, --simurgh-space-3, --simurgh-text-lg, --simurgh-text-sm

Prefer a semantic token override for theme-wide changes. Use the listed class or part selectors for a component-scoped override. When omitting recipe CSS, preserve state attributes and ARIA semantics even if your replacement styles use different selectors.

Follow the framework example as a structural contract. Root components own shared state; parts that consume that state must stay under the root (or be attached to projected descendants in Angular). Parts described as conditional are optional until their corresponding interaction or semantic region is used. Do not render a state-consuming part by itself.

FrameworkRequired parent/child relationshipConditional partsSupporting types
ReactRender ChartRoot as the ancestor. Nest the listed parts inside that root so they can read its shared state/context.ChartPlot, ChartGrid, ChartXAxis, ChartYAxis, ChartLegend, ChartTooltip, ChartCrosshair, ChartBrush, ChartDataTable, LineChart, AreaChart, BarChart, PieChart, DonutChart, ScatterChart, BubbleChart, RadarChart, HeatmapChart, ComboChart are conditional parts: include only those needed by the documented anatomy. A trigger/control and its matching content/item are required when that interaction is used.ChartProps.
VueRender ChartRoot as the ancestor. Nest the listed parts inside that root so they can read its shared state/context.ChartPlot, ChartGrid, ChartXAxis, ChartYAxis, ChartLegend, ChartTooltip, ChartCrosshair, ChartBrush, LineChart, AreaChart, BarChart, PieChart, DonutChart, ScatterChart, BubbleChart, RadarChart, HeatmapChart, ComboChart are conditional parts: include only those needed by the documented anatomy. A trigger/control and its matching content/item are required when that interaction is used.None.
AngularCreate ChartBaseComponent first. Attach listed directives to elements inside its projected content; nested component parts must remain inside it.ChartRootComponent, ChartPlotComponent, ChartGridDirective, ChartXAxisDirective, ChartYAxisDirective, ChartLegendDirective, ChartTooltipDirective, ChartCrosshairDirective, ChartBrushDirective, LineChartComponent, AreaChartComponent, BarChartComponent, PieChartComponent, DonutChartComponent, ScatterChartComponent, BubbleChartComponent, RadarChartComponent, HeatmapChartComponent, ComboChartComponent are conditional parts: include only those needed by the documented anatomy. A trigger/control and its matching content/item are required when that interaction is used.None.

Accessible names, descriptions, and form labels remain required whenever the component’s purpose cannot otherwise be determined, even when the corresponding visual part is optional.

The adapters target the same user-visible behavior and accessibility contract. Their public shapes follow each framework’s conventions and are not expected to be symbol-for-symbol identical.

ConcernContract
Public compositionReact exports 21 parts, Vue 19, and Angular 20. These are intentional composition differences; use each framework’s example rather than translating symbol-for-symbol.
State and change eventsReact uses controlled/default props and callbacks; Vue uses v-model:hiddenSeries, v-model:hiddenSeries, v-model:hiddenSeries, v-model:hiddenSeries, v-model:hiddenSeries, v-model:hiddenSeries, v-model:hiddenSeries; Angular uses [(hiddenSeries)].
Children and contentReact uses children; Vue uses the slots listed above; Angular uses the documented content projection selectors.
Native attributesReact forwards the named native interface; Vue follows the stated fallthrough rule; Angular attributes apply to the component host unless an input, directive, or documented native root consumes them.
Imperative accessNo framework exposes an imperative handle for this component.

These differences are intentional adapter design. Behavioral or accessibility differences not stated on this page are parity defects rather than supported variations.

Load the optional component stylesheet for the default recipe, override semantic tokens for broad theme changes, or omit the recipe CSS for headless styling. See theming and styling hooks for import order, selectors, dark mode, RTL, and reduced-motion guidance.

Last verified on 2026-08-13 against Simurgh registry 0.1.1.