Slope chart
Show the change between two points in time for many items in a slope chart, with highlighted lines and end labels spread apart so they do not overlap.
- React
import { SlopeChart } from 'boardplot/react/slope';- Reference
- Data, options and sizing
- Use for
- Change between two dates · Rank shift · Market share start to end · Survey shares by group, two waves
- Not for
- Intermediate periods; slope draws the first and last value of each series.
Vendor share with a folded Other line
A slope chart of market share from 2022 to 2026 highlights Avronde rising from 21.5% to 25.4%, with five named vendors all losing share and the smallest vendors folded into one Other line at 22.9%.
fold-other
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from {"width":900,"height":506} to the width of the site frame.
{
"type": "slope",
"data": {
"categories": [
{
"id": "2022",
"label": "2022",
"date": "2022-12-31"
},
{
"id": "2026",
"label": "2026",
"date": "2026-12-31"
}
],
"series": [
{
"id": "avronde",
"label": "Avronde",
"values": [
21.5,
25.4
]
},
{
"id": "brightpath",
"label": "Brightpath",
"values": [
18.2,
17.1
]
},
{
"id": "corvid",
"label": "Corvid Systems",
"values": [
15.6,
14.2
]
},
{
"id": "deltaworks",
"label": "Delta Works",
"values": [
12.4,
11.8
]
},
{
"id": "evermore",
"label": "Evermore",
"values": [
9.8,
8.6
]
},
{
"id": "fernhill",
"label": "Fernhill",
"values": [
4.6,
3.9
]
},
{
"id": "granite",
"label": "Granite",
"values": [
4.2,
3.4
]
},
{
"id": "velquor",
"label": "Velquor",
"values": [
3.9,
3
]
},
{
"id": "ironwood",
"label": "Ironwood",
"values": [
3.4,
2.8
]
},
{
"id": "vendor-j",
"label": "Vendor J",
"values": [
2.9,
4.2
]
},
{
"id": "kestrel",
"label": "Kestrel",
"values": [
2.2,
2.2
]
},
{
"id": "larkspur",
"label": "Larkspur",
"values": [
1.3,
3.4
]
}
]
},
"options": {
"title": "Avronde adds 3.9 points; the seven smallest vendors together hold 22.9%",
"subtitle": {
"company": "Illustrative market tracker",
"measure": "Market share",
"period": "2022 vs 2026"
},
"unit": "% of installed seats",
"source": "Illustrative vendor tracker, September 2026",
"size": {
"width": 1000
},
"foldBelowShare": 0.05,
"highlight": "avronde"
}
}Regional outlook across two survey waves
Six small diverging slope panels compare the share expecting better and worse conditions in March and June 2026; the net score rises in every region except Benelux, from +38 to +55 in Iberia, and falls from +6 to -1 in Benelux.
diverging-regions
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from {"width":960} to the width of the site frame.
{
"type": "slope",
"data": {
"categories": [
{
"id": "mar",
"label": "Mar 2026"
},
{
"id": "jun",
"label": "Jun 2026"
}
],
"series": [
{
"id": "nordics",
"label": "Nordics",
"values": [
44,
51
],
"negative": [
21,
17
]
},
{
"id": "iberia",
"label": "Iberia",
"values": [
52,
63
],
"negative": [
14,
8
]
},
{
"id": "baltics",
"label": "Baltic states",
"values": [
31,
42
],
"negative": [
33,
24
],
"footnote": 1
},
{
"id": "alpine",
"label": "Alpine region",
"values": [
24,
29
],
"negative": [
47,
39
]
},
{
"id": "benelux",
"label": "Benelux",
"values": [
35,
33
],
"negative": [
29,
34
]
},
{
"id": "balkans",
"label": "Western Balkans",
"values": [
18,
22
],
"negative": [
51,
43
],
"footnote": 2
}
]
},
"options": {
"variant": "diverging",
"diverging": {
"labels": {
"positive": "Better",
"negative": "Worse"
},
"sort": "positive"
},
"title": "The outlook brightened since March in every region except Benelux",
"subtitle": {
"measure": "Expected change in business conditions, next 6 months"
},
"unit": "% of respondents",
"footnotes": [
"Estonia, Latvia and Lithuania.",
"Six countries; small samples pooled."
],
"source": "Illustrative survey data",
"size": {
"width": 1000
}
}
}Team engagement across two waves
Five diverging slope panels show favorable and unfavorable shares by team across two waves; Customer service gains most, from a net of +6 to +29, while Finance falls by 13 points on a small base of 18, shown hatched.
diverging-team-engagement
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": "slope",
"data": {
"categories": [
{
"id": "w1",
"label": "Wave 1"
},
{
"id": "w2",
"label": "Wave 2"
}
],
"series": [
{
"id": "sales",
"label": "Sales",
"values": [
58,
64
],
"negative": [
18,
14
],
"n": [
142,
137
]
},
{
"id": "ops",
"label": "Operations",
"values": [
49,
47
],
"negative": [
24,
28
],
"n": [
210,
204
]
},
{
"id": "product",
"label": "Product and engineering",
"values": [
66,
71
],
"negative": [
12,
9
],
"n": [
96,
101
]
},
{
"id": "finance",
"label": "Finance",
"values": [
61,
55
],
"negative": [
15,
22
],
"n": [
21,
18
]
},
{
"id": "service",
"label": "Customer service",
"values": [
41,
52
],
"negative": [
35,
23
],
"n": [
175,
181
]
}
]
},
"options": {
"variant": "diverging",
"diverging": {
"labels": {
"positive": "Favourable",
"negative": "Unfavourable"
}
},
"title": "Engagement rose in three of five teams; Customer service gained most",
"subtitle": {
"measure": "I would recommend this company as a place to work"
},
"unit": "% of respondents",
"source": "Illustrative employee survey",
"size": {
"width": 1000
}
}
}Minimal spec
Save this spec as slope.json and run the command.
{
"type": "slope",
"data": {
"categories": [{ "id": "2025", "label": "2025" }, { "id": "2026", "label": "2026" }],
"series": [
{ "id": "north", "label": "North", "values": [80, 100] },
{ "id": "south", "label": "South", "values": [90, 70] }
]
},
"options": { "unit": "$k", "title": "North grows while South declines", "source": "Illustrative data" }
}npx boardplot render slope.json --out slope.svg