Scatter and bubble chart
Plot two measures per point in a scatter chart, with group colors and point labels, and add a third measure as bubble size for a bubble chart.
- React
import { ScatterChart } from 'boardplot/react/scatter';- Reference
- Data, options and sizing
- Use for
- Related measures · Portfolio · Price against volume per product
- Price tracks quality across value and premium brands
- Among premium brands each price point buys more perceived quality
- Coverage vs error rate for eight screening rules
- Competitive position by differentiation and delivery reach
- Two stars and one question mark; the cash cow leads on revenue
- Higher price goes with lower volume in this panel
Price against perceived quality by brand
Ten brands plotted by price index (3 to 9) and perceived quality (2 to 8) show quality rising with price, with value brands in dark blue and premium brands in light blue.
price-quality-brands
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "scatter",
"data": {
"groups": [
{
"id": "value",
"label": "Value brands"
},
{
"id": "premium",
"label": "Premium brands"
}
],
"points": [
{
"id": "a",
"group": "value",
"label": "Brand A",
"x": 3.2,
"y": 2.1
},
{
"id": "b",
"group": "value",
"label": "Brand B",
"x": 4.2,
"y": 3.6
},
{
"id": "c",
"group": "value",
"label": "Brand C",
"x": 4.8,
"y": 3.2
},
{
"id": "d",
"group": "value",
"label": "Brand D",
"x": 5,
"y": 4
},
{
"id": "e",
"group": "value",
"label": "Brand E",
"x": 5.5,
"y": 3.8
},
{
"id": "f",
"group": "value",
"label": "Brand F",
"x": 6.2,
"y": 4.4
},
{
"id": "g",
"group": "premium",
"label": "Brand G",
"x": 6.8,
"y": 5.2
},
{
"id": "h",
"group": "premium",
"label": "Brand H",
"x": 7,
"y": 5.6
},
{
"id": "i",
"group": "premium",
"label": "Brand I",
"x": 7.4,
"y": 6.1
},
{
"id": "j",
"group": "premium",
"label": "Brand J",
"x": 8.4,
"y": 7.2
}
]
},
"options": {
"title": "Price tracks quality across value and premium brands",
"subtitle": {
"company": "Apparel market",
"measure": "Price index vs perceived quality",
"period": "2026 brand tracker"
},
"unit": "index 0–10",
"axisTitles": {
"x": "Price index",
"y": "Perceived quality"
},
"source": "Illustrative brand tracker, 10 invented brands",
"legend": "bottom",
"highlight": "j",
"size": {
"width": 1000
}
}
}Trend lines for two brand tiers
Ten brands by price index and perceived quality, with one trend line per tier: value brands slope 0.69 (r² 0.810) and premium brands 1.21 (r² 0.991).
price-quality-trend-by-tier
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "scatter",
"data": {
"groups": [
{
"id": "value",
"label": "Value brands"
},
{
"id": "premium",
"label": "Premium brands"
}
],
"points": [
{
"id": "a",
"group": "value",
"label": "Brand A",
"x": 3.2,
"y": 2.1
},
{
"id": "b",
"group": "value",
"label": "Brand B",
"x": 4.2,
"y": 3.6
},
{
"id": "c",
"group": "value",
"label": "Brand C",
"x": 4.8,
"y": 3.2
},
{
"id": "d",
"group": "value",
"label": "Brand D",
"x": 5,
"y": 4
},
{
"id": "e",
"group": "value",
"label": "Brand E",
"x": 5.5,
"y": 3.8
},
{
"id": "f",
"group": "value",
"label": "Brand F",
"x": 6.2,
"y": 4.4
},
{
"id": "g",
"group": "premium",
"label": "Brand G",
"x": 6.8,
"y": 5.2
},
{
"id": "h",
"group": "premium",
"label": "Brand H",
"x": 7,
"y": 5.6
},
{
"id": "i",
"group": "premium",
"label": "Brand I",
"x": 7.4,
"y": 6.1
},
{
"id": "j",
"group": "premium",
"label": "Brand J",
"x": 8.4,
"y": 7.2
}
]
},
"options": {
"title": "Among premium brands each price point buys more perceived quality",
"subtitle": {
"company": "Apparel market",
"measure": "Price index vs perceived quality",
"period": "2026 brand tracker"
},
"unit": "index 0–10",
"axisTitles": {
"x": "Price index",
"y": "Perceived quality"
},
"trend": {
"groups": "each"
},
"legend": "bottom",
"source": "Illustrative brand tracker, 10 invented brands",
"size": {
"width": 1000
}
}
}Screening rules on a coverage frontier
Eight screening rules sit between 62% and 95% coverage and 1.2% to 5.8% error rate, joined by a dotted best trade-off line, with a shaded target zone holding Rules D and E.
coverage-error-frontier
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.frontier; options.size from the report frame to the width of the site frame.
{
"type": "scatter",
"data": {
"points": [
{
"id": "a",
"label": "Rule A",
"x": 62,
"y": 1.2
},
{
"id": "b",
"label": "Rule B",
"x": 70,
"y": 1.8
},
{
"id": "c",
"label": "Rule C",
"x": 74,
"y": 1.4
},
{
"id": "d",
"label": "Rule D",
"x": 81,
"y": 2.6
},
{
"id": "e",
"label": "Rule E",
"x": 85,
"y": 2.2
},
{
"id": "f",
"label": "Rule F",
"x": 88,
"y": 3.4
},
{
"id": "g",
"label": "Rule G",
"x": 92,
"y": 4.1
},
{
"id": "h",
"label": "Rule H",
"x": 95,
"y": 5.8
}
]
},
"options": {
"title": "Coverage vs error rate for eight screening rules",
"axisTitles": {
"x": "Coverage",
"y": "Error rate"
},
"axisFormat": {
"x": "0%",
"y": "0.0%"
},
"frontier": {
"x": "max",
"y": "min",
"label": "Frontier"
},
"zones": {
"grid": {
"x": [
80
],
"y": [
3
],
"cells": [
{
"id": "target",
"column": 1,
"row": 0,
"label": "Target zone",
"tone": "good",
"labelAt": "both"
},
{
"id": "narrow",
"column": 0,
"row": 0,
"tone": "none"
},
{
"id": "noisy-narrow",
"column": 0,
"row": 1,
"tone": "none"
},
{
"id": "noisy",
"column": 1,
"row": 1,
"tone": "none"
}
]
}
},
"source": "Synthetic data, invented rules",
"size": {
"width": 1000
}
}
}Competitive position with strategic zones
Five companies are placed by differentiation and delivery reach, with the focus company Brevinth at 7.8 and 7.2 inside the Advantaged zone and peers in or near the Contested zone.
competitive-position
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from "slide-16x9" to the width of the site frame.
{
"type": "scatter",
"data": {
"groups": [
{
"id": "focus",
"label": "Focus company",
"colorRole": "highlight"
},
{
"id": "peer",
"label": "Peers"
}
],
"points": [
{
"id": "brevinth",
"group": "focus",
"label": "Brevinth",
"x": 7.8,
"y": 7.2,
"size": 70
},
{
"id": "atlas",
"group": "peer",
"label": "Atlas",
"x": 6.2,
"y": 5.9,
"size": 54
},
{
"id": "northstar",
"group": "peer",
"label": "Northstar",
"x": 4.5,
"y": 6.8,
"size": 46
},
{
"id": "orion",
"group": "peer",
"label": "Orion",
"x": 5.1,
"y": 3.7,
"size": 38
},
{
"id": "kepler",
"group": "peer",
"label": "Kepler",
"x": 2.8,
"y": 4.4,
"size": 30
}
]
},
"options": {
"title": "Competitive position by differentiation and delivery reach",
"subtitle": {
"measure": "Relative differentiation × delivery reach"
},
"unit": "score 0–10; bubble area = indexed scale",
"axisTitles": {
"x": "Relative differentiation, score 0–10",
"y": "Delivery reach, score 0–10"
},
"sizeLegend": {
"label": "Indexed scale"
},
"source": "Illustrative competitor assessment",
"legend": "bottom",
"highlight": "brevinth",
"zones": {
"regions": [
{
"id": "advantaged",
"label": "Advantaged",
"tone": "good",
"smooth": true,
"points": [
{
"x": 5.8,
"y": 5.6
},
{
"x": 7.4,
"y": 5.2
},
{
"x": 9.1,
"y": 6.4
},
{
"x": 8.8,
"y": 9
},
{
"x": 6.3,
"y": 8.8
}
]
},
{
"id": "contested",
"label": "Contested",
"tone": "warn",
"smooth": true,
"points": [
{
"x": 3.2,
"y": 3
},
{
"x": 6.2,
"y": 2.8
},
{
"x": 7,
"y": 5.3
},
{
"x": 5.4,
"y": 6.6
},
{
"x": 3,
"y": 5.4
}
]
}
]
},
"size": {
"width": 1000
}
}
}Price and volume with a fitted trend
Twelve SKUs show volume index falling from about 148 to 66 as price index rises from 82 to 124, with a dashed linear trend of slope −1.96 and r² 0.951.
price-volume-trend
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "scatter",
"data": {
"points": [
{
"id": "alpine",
"label": "Alpine",
"x": 82,
"y": 148
},
{
"id": "brava",
"label": "Brava",
"x": 88,
"y": 131
},
{
"id": "corsa",
"label": "Corsa",
"x": 91,
"y": 139
},
{
"id": "dolomit",
"label": "Dolomit",
"x": 95,
"y": 118
},
{
"id": "etna",
"label": "Etna",
"x": 98,
"y": 112
},
{
"id": "fjord",
"label": "Fjord",
"x": 100,
"y": 104
},
{
"id": "garda",
"label": "Garda",
"x": 103,
"y": 109
},
{
"id": "hekla",
"label": "Hekla",
"x": 106,
"y": 92
},
{
"id": "ischia",
"label": "Ischia",
"x": 110,
"y": 88
},
{
"id": "juist",
"label": "Juist",
"x": 114,
"y": 79
},
{
"id": "karst",
"label": "Karst",
"x": 118,
"y": 83
},
{
"id": "lago",
"label": "Lago",
"x": 124,
"y": 66
}
]
},
"options": {
"title": "Higher price goes with lower volume in this panel",
"subtitle": {
"company": "Brevinth Beverages",
"measure": "Price index vs volume index",
"period": "FY26"
},
"axisTitles": {
"x": "Price index (market = 100)",
"y": "Volume index (market = 100)"
},
"trend": {
"label": "Linear trend"
},
"source": "Illustrative SKU panel, 12 SKUs",
"size": {
"width": 1000
}
}
}Minimal spec
Save this spec as scatter.json and run the command.
{
"type": "scatter",
"data": {
"points": [
{ "id": "a", "label": "A", "x": 10, "y": 40 },
{ "id": "b", "label": "B", "x": 20, "y": 55 },
{ "id": "c", "label": "C", "x": 30, "y": 45 }
]
},
"options": {
"axisTitles": { "x": "Price ($)", "y": "Quality score" },
"title": "Quality is highest for the mid-priced offer",
"source": "Illustrative data"
}
}npx boardplot render scatter.json --out scatter.svg