RangeAreaChart
The RangeAreaChart component displays a shaded area between a range of values for each data point, typically between a start and end value. It is ideal for visualizing value intervals, such as temperature ranges, confidence intervals, or min/max ranges over time.
Usage Example
Props
marks: Array<object> (required)
Each mark defines the area range for one category.
-
label: string | DateThe X-axis label (e.g., month, category name, time). -
start: numberThe lower boundary of the range. -
end: numberThe upper boundary of the range. -
(Optional) properties from
ChartMarkProps:foregroundStyle– fill color of the areaopacity,interpolationMethod,annotation, etc.
interpolationMethod?: string
Specifies how the area curve is drawn between points.
For example, 'catmullRom' produces a smooth, curved shape between ranges.
Full Example
This example plots monthly temperature ranges using a smooth interpolated area chart.
Use Cases
RangeAreaChart is well-suited for:
- Temperature ranges over time
- Visualizing confidence intervals in statistics
- Min/max stock prices, performance bands, or uncertainty areas
