[data-reveal]{opacity:1!important;transform:none!important}
AntelopeJS DMS
DocumentationRange area chart

Range area chart

A filled band between a low and a high per point, for percentiles, confidence intervals and forecasts.

ChartRangeArea plots a band per series instead of a curve: each point is { x, y: [low, high] }. Percentile bands read as one distribution when you send adjacent ranges, such as p50-p95 and then p95-p99.

Range Area Chart ChartRangeArea
Connecting to the DMS preview…
Connecting DMS 0.25.8 5 options set

Usage

src/pages/dashboard.ts ts
import { ChartRangeArea } from "@antelopejs/interface-dms/base/chart";

static distribution = ChartRangeArea({
  title: "$api.metrics.latency_distribution",
  fetchUrl: "/api/metrics/latency-bands",
  fillOpacity: 0.35,
});

The route answers { series } in the shape listed under Data shapes. Wrap the chart in a ChartCard to add a headline value and a comparison.

Options

Options of the Range Area Chart block
OptionTypeDefaultDescription
title Contentstring–
description Contentstring–
color Appearancestring | string[]–
height Appearancestring–
width Appearancenumber–
showTooltip Appearancebooleantrue
showLegend Appearancebooleantrue
legendPosition Appearance"top" | "bottom"–
showGrid Appearancebooleantrue
yRange.min* Appearancenumber–
yRange.max* Appearancenumber–
comparisonStyle Appearance"dashed" | "solid" | "dimmed"–
smooth Appearancebooleantrue
curve Appearance"smooth" | "straight" | "stepline"–
xaxisType Appearance"category" | "datetime" | "numeric"–
fillOpacity Appearancenumber–

Recipes

A band with a line on top

rangeArea is also a valid seriesDefs type of a mixed chart, so a band can carry a plain median line.

Next steps

Charts

Colors, annotations, events and the other chart types.

Chart card

Frame the chart with its headline value.