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

Scatter chart

Points placing each item on two measures, with optional labels.

ChartScatter places each point by two measures, such as deal size against cycle length, or response size against latency. Points are drawn at 6 px unless pointSize says otherwise.

Scatter Chart ChartScatter
Connecting to the DMS preview…
Connecting DMS 0.25.8 8 options set

Usage

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

static deals = ChartScatter({
  title: "$crm.deals.size_vs_cycle",
  fetchUrl: "/api/crm/deals/scatter",
  xaxisType: "numeric",
  showLabels: true,
});

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 Scatter 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"–
pointSize Appearancenumber–
showLabels Appearanceboolean–

Recipes

Label the points

With showLabels, a point's label is what its data label shows; a point without one shows its value.

Next steps

Charts

Colors, annotations, events and the other chart types.

Chart card

Frame the chart with its headline value.