Components
Column chart
Vertical columns comparing periods or categories, stacked or grouped.
ChartColumn draws vertical columns. Use it to compare periods (orders per month) or a handful of categories, with stacked: true to show their composition.
ChartColumn Connecting to the DMS preview…
Usage
src/pages/dashboard.ts
import { ChartColumn } from "@antelopejs/interface-dms/base/chart";
static orders = ChartColumn({
title: "$shop.orders.per_month",
fetchUrl: "/api/shop/orders-per-month",
columnWidth: 60,
});
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" | – | |
stackedAppearance | boolean | – | |
columnWidthAppearance | number | – | |
roundedCornersAppearance | boolean | true |
Recipes
Columns with a target
Add annotations: [{ y: 1200, label: "Target" }] to draw the goal across the columns.

