Dot plot component: every point placed along one value axis, with points that share a value — or fall in the same binWidth bin — stacked into a column above it. It shows how values are spread out while keeping each item visible, hoverable and clickable, and a point can be drawn as its own image. Takes the same series-of-points data as the Plot Chart: a point's value is its position on the axis, its key its name, and its series its color. Points without a numeric value, and hidden series and points, are left out.
A month of daily highs, one mark per day, grouped by sky. The controls edit the chart's config live; each field is described in the Configuration table.
Change the settings above and it redraws.
const config: PcacDotPlotChartConfig = {
// Series, each holding its points: value = position on the axis, key = its name.
data: [
{ key: 'Sunny', value: null, hide: false, data: [
{ key: 'June 1', value: 81, hide: false, data: [], image: 'sun.svg' },
...
] },
...
],
xAxis: { domainMin: 50, domainMax: 90, label: 'Daily high (°F)', showGrid: true },
binWidth: 2,
pointImage: { maxWidth: 22, maxHeight: 22 },
};<pcac-dot-plot-chart [config]="config" (dotClicked)="onClicked($event)" />
import { PcacDotPlotChart, PcacDotPlotChartConfig } from '@pioneer-code/pioneer-charts';| Name | Description |
|---|---|
| data | Collection of PcacData objects. |
| height | Height of chart component. Default is 200px. |
| ariaLabel | What the chart shows, for screen readers — e.g. 'Sales by month, 2026'. The chart is announced as a group with this name, and each bar, slice or point inside it by its own key and value (see Accessibility). When omitted, its type is used: 'Bar chart', 'Pie chart', 'Line chart' and so on. |
| heightFull | If true, height is treated as a minimum height and the chart grows to fill its container whenever that container is taller. Default is false.
|
| xAxis / yAxis | Per-axis settings, one PcacAxisConfig for each axis. Every field is optional; omit the whole object for a default axis. See the Axis Styling guide for a live demo.
|
| value axis | On a dot plot xAxis is the value axis. domainMin / domainMax fix its span; without them it spans the data, rounded out to nice ticks. format formats its ticks and the tooltip's value, and every label, sub label, tick and grid setting applies. There is no y axis — a column's height is a count of marks, not a value — so yAxis is ignored. |
| binWidth | Group values into bins this wide, in the axis's units, and stack each bin at its center. Bins start at xAxis.domainMin, or 0 without one. Unset, only equal values stack. |
| dotRadius | Radius of a point's dot in pixels. Default 6. A hovered dot grows by 2 and fills with its series' color. |
| gap | Space between stacked marks in pixels. Default 2. |
| pointImage | Bounding box (maxWidth / maxHeight) for points with an image, drawn in place of their dot, as on the plot chart. When the tallest column wouldn't fit the chart's height, every mark shrinks evenly until it does, so nothing is cut off. |
| colorOverride | Series colors, any CSS color, in place of the theme palette, one per series in order. Repeated when there are more series than colors. |
| Binding | Description | Payload |
|---|---|---|
| (dotClicked)="onClicked($event)" | Emitted when a dot or image is clicked, or activated with Enter or Space. It emits a copy of the item; set its id to trace it back to your record (see Data Contract). | PcacData |