Chart Area
The Chart.Area component fills the region of a Chart.Line down to the baseline. All Line features — curves, gaps, hovering, axes, and legend — apply unchanged.
Basic Usage
Section titled “Basic Usage”import Chart from '@components/Feedback/Chart/Chart';import { createSignal } from 'solid-js';
const App = () => { const [load] = createSignal([ { label: 'Player', points: [ { type: 'strength', value: 13 }, { type: 'agility', value: 9 }, { type: 'stamina', value: 16 }, ], }, ]);
return ( <Chart.Area data={load()} interactive> <Chart.YAxis /> <Chart.XAxis /> <Chart.Legend position="bottom" /> </Chart.Area> );};Options
Section titled “Options”Overlapping vs. Stacked
Section titled “Overlapping vs. Stacked”By default, series overlap with translucent fills (0.25 opacity) so overlapping areas remain visible. Each area keeps a full-strength outline for clarity.
For stacked areas where series sit on top of each other:
<Chart.Area data={load()} stacked />Remove Outline
Section titled “Remove Outline”<Chart.Area data={load()}> <Chart.Area.Stroke width={0} /></Chart.Area>Inherits all Chart.Line props, plus:
| Prop | Type | Default | Description |
|---|---|---|---|
stacked | boolean | false | Stack series instead of overlapping. |
Chart.Area.Fill
Section titled “Chart.Area.Fill”| Prop | Type | Default | Description |
|---|---|---|---|
class | string | "" | CSS classes for filled regions. |
style | JSX.CSSProperties | {} | Inline styles for filled regions. |
opacity | number | 0.25 | Fill opacity (increase when series don’t overlap). |
curve | CurveType | inherits | Override chart’s curve. |
Chart.Area.Stroke
Section titled “Chart.Area.Stroke”Same props as Chart.Line.Stroke. Set width={0} to remove outline.
Chart.Area.Point
Section titled “Chart.Area.Point”Same props as Chart.Line.Point.
Shared Slots
Section titled “Shared Slots”Chart.XAxis, Chart.YAxis, Chart.Grid, Chart.Legend, Chart.Tooltip, Chart.Labels — see Shared slots.
© 2026 Coherent Labs. All rights reserved.