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.
marks: Array<object> (required)Each mark defines the area range for one category.
label: string | Date
The X-axis label (e.g., month, category name, time).
start: number
The lower boundary of the range.
end: number
The upper boundary of the range.
(Optional) properties from ChartMarkProps:
foregroundStyle – fill color of the areaopacity, interpolationMethod, annotation, etc.interpolationMethod?: stringSpecifies how the area curve is drawn between points.
For example, 'catmullRom' produces a smooth, curved shape between ranges.
This example plots monthly temperature ranges using a smooth interpolated area chart.
RangeAreaChart is well-suited for: