Components
Line chart
A trend over time, one line per series, with reference lines and a synced crosshair.
ChartLine draws one line per series over a category, datetime or numeric x axis. Use it for a trend over time — requests, revenue, latency — and its comparison series for the previous period.
ChartLine Connecting to the DMS preview…
Usage
src/pages/dashboard.ts
import { ChartLine } from "@antelopejs/interface-dms/base/chart";
static latency = ChartLine({
title: "$api.metrics.latency",
fetchUrl: "/api/metrics/latency",
periodScope: "api",
xaxisType: "datetime",
curve: "smooth",
annotations: [{ y: 300, label: "SLO", color: "error" }],
syncGroup: "metrics",
});
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
| Option | Type | Default | Description |
|---|---|---|---|
titleContent | string | – | |
descriptionContent | string | – | |
colorAppearance | string | string[] | – | |
heightAppearance | string | – | |
widthAppearance | number | – | |
showTooltipAppearance | boolean | true | |
showLegendAppearance | boolean | true | |
legendPositionAppearance | "top" | "bottom" | – | |
showGridAppearance | boolean | true | |
yRange.min*Appearance | number | – | |
yRange.max*Appearance | number | – | |
comparisonStyleAppearance | "dashed" | "solid" | "dimmed" | – | |
smoothAppearance | boolean | true | |
curveAppearance | "smooth" | "straight" | "stepline" | – | |
xaxisTypeAppearance | "category" | "datetime" | "numeric" | – | |
strokeWidthAppearance | number | – |
Recipes
Steps instead of curves
curve: "stepline" draws a value that changes by steps (replicas, plan limits). curve wins over smooth when both are set.
Read a stacked grid together
Give every chart of a metrics grid the same syncGroup: hovering one moves the tooltip of all of them.

