1 viewer
Back to Components
Component · Visualization

Chart

Multi-series line or area chart with grid lines and legend.

Category
Visualization
Slots
1
States
0
Writer
Shared
cre8.primitive.chart

Preview

Live renderShared SSR + WASM writers
No chart data
<Chart
  height={220}
  series={[
    { data: [12, 18, 25, 42, 68, 85, 62, 45, 38], name: "CPU Usage %" },
    { data: [80, 80, 80, 80, 80, 80, 80, 80, 80], name: "Target Cap %" }
  ]}
  title="Resource Consumption (CPU / Memory)"
/>

Anatomy

The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.

SlotDOM class
root.client-view-chart
1 row

States and platforms

The states the contract publishes, the platforms it declares, and the style recipes that dress it.

States
No published states
Platforms
web
Recipes
unstyledruntime-console

Renderers

Shared writer
Chart renders through the one writer the server and the WASM DOM share, so both emit the same markup.

Every tag in the example above renders through a shared writer.

Declared adapters. A status is the manifest's declaration, not a measured parity result.

TargetRendererStatus
webreactexperimental
1 row

Accessibility

Semantic structure must stay available without visual styling.

  • Expose meaningful names for interactive controls.
  • Keep keyboard and pointer behavior equivalent where the platform supports it.
  • Publish state with native semantics and data attributes where the adapter supports them.