Compare bikes
Put two or three gravel bikes side by side, size by size, and see what actually differs.
Pick up to three bikes and a size for each. The table lines up their numbers, shows how each one differs from bike A, and places all three among every size of every bike in the dataset.
raw = FileAttachment("data/gravel_geometry_derived.csv").csv({typed: true})
bikes = raw.map(d => ({
...d,
is_default_config: d.is_default_config === true || d.is_default_config === "TRUE",
offset_estimated: d.offset_estimated === true || d.offset_estimated === "TRUE",
size_label: String(d.size_label),
label: `${d.brand} ${d.model}`
}))
bikeList = Array.from(new Set(bikes.map(d => d.label))).sort((a, b) => a.localeCompare(b))
slotColours = ({A: "#2340FF", B: "#E0431B", C: "#00664B"})
categoryNames = ({"race": "Race", "all-round": "All-round", "adventure": "Adventure"})
configsFor = bike => Array.from(new Set(bikes.filter(d => d.label === bike).map(d => d.config)))
defaultConfigFor = bike => (bikes.find(d => d.label === bike && d.is_default_config) ?? {}).config
sizesFor = (bike, config) => bikes
.filter(d => d.label === bike && d.config === config)
.sort((a, b) => a.size_order - b.size_order)
.map(d => d.size_label)
// middle size, rounding up, as a sensible starting point
middleSize = sizes => sizes[Math.floor(sizes.length / 2)]
rowFor = (bike, config, size) => bikes.find(d => d.label === bike && d.config === config && d.size_label === size)
// Starting picks: one race, one adventure, one all-round bike
starts = ({
A: {bike: "Specialized Crux 5", size: "56"},
B: {bike: "Norco Search C Gen 3", size: "3"},
C: {bike: "Trek Checkpoint SL Gen 3", size: "ML"}
})A Bike A
B Bike B
C Bike C optional
picks = [
{slot: "A", row: rowFor(bikeA, configA, sizeA)},
{slot: "B", row: rowFor(bikeB, configB, sizeB)},
...(bikeC === "(none)" ? [] : [{slot: "C", row: rowFor(bikeC, configC, sizeC)}])
].filter(p => p.row)
// Everything we compare, grouped, with a plain-language reading of "higher"
measures = [
{group: "Fit", key: "stack", label: "Stack", unit: "mm", dp: 0, higher: "taller front end, more upright"},
{group: "Fit", key: "reach", label: "Reach", unit: "mm", dp: 0, higher: "longer front end, more stretched out"},
{group: "Fit", key: "stack_reach_ratio", label: "Stack/reach", unit: "", dp: 2, higher: "more upright overall"},
{group: "Fit", key: "head_tube_length", label: "Head tube", unit: "mm", dp: 0, higher: "higher handlebars before spacers"},
{group: "Fit", key: "seat_tube_angle", label: "Seat angle", unit: "°", dp: 1, higher: "saddle further forward over the pedals"},
{group: "Fit", key: "top_tube_effective", label: "Top tube (effective)", unit: "mm", dp: 0, higher: "longer cockpit"},
{group: "Fit", key: "standover", label: "Standover", unit: "mm", dp: 0, higher: "less room over the top tube (measured differently by each brand)"},
{group: "Handling", key: "head_tube_angle", label: "Head angle", unit: "°", dp: 1, higher: "steeper, quicker steering"},
{group: "Handling", key: "fork_offset_used", label: "Fork offset", unit: "mm", dp: 0, higher: "less trail for the same head angle"},
{group: "Handling", key: "trail_calc", label: "Trail (700 × 45)", unit: "mm", dp: 0, higher: "steadier, more self-centring steering"},
{group: "Handling", key: "wheelbase", label: "Wheelbase", unit: "mm", dp: 0, higher: "more stable, less nimble"},
{group: "Handling", key: "front_centre_calc", label: "Front centre", unit: "mm", dp: 0, higher: "front wheel further ahead of the pedals"},
{group: "Handling", key: "chainstay", label: "Chainstay", unit: "mm", dp: 0, higher: "steadier rear end, more tyre room"},
{group: "Handling", key: "bb_drop", label: "BB drop", unit: "mm", dp: 0, higher: "pedals sit lower between the wheels"},
{group: "Handling", key: "toe_clearance", label: "Toe clearance", unit: "mm", dp: 0, higher: "less chance of toe overlap"},
{group: "Tyres", key: "tyre_clearance_mm", label: "Max tyre width", unit: "mm", dp: 0, higher: "room for wider tyres"}
]
// Reference population for the strips: every size, default setting only
population = bikes.filter(d => d.is_default_config)Drawn to scale
The frames below are drawn from each chart’s numbers, to the same scale, so differences of a few millimetres are real. Tubes are drawn as straight lines between the published points, so the shapes are simplified: real tubes curve, and real forks bend.
drawing = {
const W = Math.max(320, Math.min(1100, width));
const anchorOf = p => alignAt === "rear axle" ? p.rearAxle : alignAt === "front axle" ? p.frontAxle : p.bb;
// Points for each picked bike, shifted so the chosen anchor sits at (0, 0)
const drawn = picks.map(pk => {
const p = bikePoints(pk.row);
const a = anchorOf(p);
const s = q => ({x: q.x - a.x, y: q.y - a.y});
return {
slot: pk.slot, row: pk.row, colour: slotColours[pk.slot], filled: p.filled,
bb: s(p.bb), rearAxle: s(p.rearAxle), frontAxle: s(p.frontAxle), htTop: s(p.htTop),
R: p.wheelRadius, rim: p.rimRadius, groundY: p.groundY - a.y,
segs: frameSegments(p).map(sg => ({...sg, a: s(sg.a), b: s(sg.b)}))
};
});
// Fit everything (wheels included) with a margin, flipping y so up is up
const xs = drawn.flatMap(b => [b.rearAxle.x - b.R, b.frontAxle.x + b.R, b.htTop.x]);
const ys = drawn.flatMap(b => [b.groundY, b.rearAxle.y + b.R, b.frontAxle.y + b.R, b.htTop.y]);
const pad = 60;
const x0 = Math.min(...xs) - pad, x1 = Math.max(...xs) + pad;
const y0 = Math.min(...ys) - pad - 40, y1 = Math.max(...ys) + pad;
const vb = `${x0} ${-y1} ${x1 - x0} ${y1 - y0}`;
const H = Math.round(W * (y1 - y0) / (x1 - x0));
const px = (x1 - x0) / W; // millimetres per screen pixel
const fs = 12 * px; // 12 px text, in drawing units
const line = (a, b, c, w, extra = "") =>
`<line x1="${a.x}" y1="${-a.y}" x2="${b.x}" y2="${-b.y}" stroke="${c}" stroke-width="${w}" vector-effect="non-scaling-stroke" stroke-linecap="round" ${extra}/>`;
let svg = "";
// Ground lines
for (const b of drawn) svg += line({x: x0 + 10, y: b.groundY}, {x: x1 - 10, y: b.groundY}, b.colour, 1, `stroke-opacity="0.5"`);
// Wheels: tyre and rim
for (const b of drawn) for (const c of [b.rearAxle, b.frontAxle]) {
svg += `<circle cx="${c.x}" cy="${-c.y}" r="${b.R}" fill="none" stroke="${b.colour}" stroke-width="2.5" stroke-opacity="0.55" vector-effect="non-scaling-stroke"/>`;
svg += `<circle cx="${c.x}" cy="${-c.y}" r="${b.rim}" fill="none" stroke="${b.colour}" stroke-width="1" stroke-opacity="0.35" vector-effect="non-scaling-stroke"/>`;
svg += `<circle cx="${c.x}" cy="${-c.y}" r="${3 * px}" fill="${b.colour}"/>`;
}
// Toe overlap zone: crank (172.5 mm) plus a typical shoe reaching about 100 mm past the pedal axle
if (showToe) for (const b of drawn) {
svg += `<circle cx="${b.bb.x}" cy="${-b.bb.y}" r="172.5" fill="none" stroke="${b.colour}" stroke-width="1" stroke-dasharray="2,3" vector-effect="non-scaling-stroke"/>`;
svg += `<circle cx="${b.bb.x}" cy="${-b.bb.y}" r="272.5" fill="${b.colour}" fill-opacity="0.06" stroke="${b.colour}" stroke-width="1" stroke-dasharray="6,4" vector-effect="non-scaling-stroke"/>`;
}
// Frames, A drawn last so it sits on top
for (const b of [...drawn].reverse()) {
for (const sg of b.segs) svg += line(sg.a, sg.b, b.colour, 1.2 + sg.weight, `stroke-opacity="0.95"`);
svg += `<circle cx="${b.bb.x}" cy="${-b.bb.y}" r="${5 * px}" fill="#ffffff" stroke="${b.colour}" stroke-width="2" vector-effect="non-scaling-stroke"/>`;
}
// Stack and reach guides, measured from each bike's own bottom bracket
if (showDims) {
drawn.forEach((b, i) => {
const t = b.htTop;
svg += line({x: b.bb.x, y: t.y}, t, b.colour, 1, `stroke-dasharray="4,4"`);
svg += line({x: t.x, y: b.bb.y}, t, b.colour, 1, `stroke-dasharray="4,4"`);
svg += `<circle cx="${t.x}" cy="${-t.y}" r="${4 * px}" fill="${b.colour}"/>`;
});
}
// Scale bar: 100 mm
const sbX = x0 + 20 * px, sbY = y0 + 25;
svg += line({x: sbX, y: sbY}, {x: sbX + 100, y: sbY}, "#111111", 2);
svg += `<text x="${sbX}" y="${-(sbY) - 6 * px}" text-anchor="start" font-size="${fs * 0.9}" fill="#111111" font-family="Bricolage Grotesque, sans-serif">100 mm</text>`;
const label = drawn.map(b => `${b.slot}: ${b.row.label} size ${b.row.size_label}`).join("; ");
const el = document.createElement("div");
el.innerHTML = `<svg viewBox="${vb}" width="${W}" height="${H}" role="img" aria-label="Side views drawn to scale. ${label}">${svg}</svg>`;
const notes = drawn.filter(b => b.filled.length).map(b => `${b.slot}: ${b.filled.join(" and ")} not published, so drawn from typical proportions`);
if (notes.length) el.insertAdjacentHTML("beforeend", `<div class="data-note">${notes.join(". ")}.</div>`);
return el;
}exportButtons(() => drawing.querySelector("svg"), {
title: "Gravel bikes compared, drawn to scale",
key: picks.map(p => ({colour: slotColours[p.slot], text: `${p.slot}: ${p.row.label}, size ${p.row.size_label}${p.row.config === "standard" ? "" : ` (${p.row.config})`}`})),
note: `Lined up at the ${alignAt}.${showDims ? " Dashed lines: stack and reach, from each bike's own bottom bracket." : ""}${showToe ? " Shaded circles: where a shoe can reach." : ""}`
}, fileName("compare", ...picks.map(p => `${p.row.label} ${p.row.size_label}`)))Drawn with 700 × 45 mm tyres (29 × 2.25” on the Salsa Cutthroat). The toe overlap zone is a rough guide: a 172.5 mm crank plus about 100 mm of shoe ahead of the pedal axle. Where the shaded circle crosses a front tyre, toe overlap is possible in tight turns.
The numbers
compareTable = {
const fmt = (v, dp) => v == null || Number.isNaN(v) ? "–" : v.toFixed(dp);
const a = picks[0]?.row;
// Small strip: grey ticks for every size in the dataset, letters for the picks
const strip = m => {
const vals = population.map(d => d[m.key]).filter(v => v != null);
if (!vals.length) return "";
const lo = Math.min(...vals), hi = Math.max(...vals);
const W = 180, H = 34, pad = 9;
const x = v => pad + (hi === lo ? 0.5 : (v - lo) / (hi - lo)) * (W - 2 * pad);
const ticks = vals.map(v => `<line x1="${x(v)}" x2="${x(v)}" y1="4" y2="${H - 4}" stroke="#C9C1B3" stroke-opacity="0.35"/>`).join("");
const marks = picks.map((p, i) => {
const v = p.row[m.key];
if (v == null) return "";
const cy = 9 + i * 8;
return `<circle cx="${x(v)}" cy="${cy}" r="6" fill="${slotColours[p.slot]}" stroke="#fff" stroke-width="1.5"/>
<text x="${x(v)}" y="${cy + 3}" text-anchor="middle" font-size="8" font-weight="700" fill="#fff">${p.slot}</text>`;
}).join("");
return `<svg class="strip" width="${W}" height="${H}" role="img" aria-label="Where each bike sits among all ${vals.length} sizes, from ${fmt(lo, m.dp)} to ${fmt(hi, m.dp)}">${ticks}${marks}</svg>
<div class="strip-ends"><span>${fmt(lo, m.dp)}</span><span>${fmt(hi, m.dp)}</span></div>`;
};
const head = `<tr><th>Measure</th>${picks.map(p =>
`<th class="num"><span class="slot-dot" style="background:${slotColours[p.slot]}">${p.slot}</span></th>`).join("")}<th class="strip-head">Among all ${population.length} sizes</th></tr>`;
let lastGroup = "";
const body = measures.map(m => {
const groupRow = m.group !== lastGroup ? `<tr class="group-row"><th colspan="${picks.length + 2}">${m.group}</th></tr>` : "";
lastGroup = m.group;
const cells = picks.map((p, i) => {
const v = p.row[m.key];
let diff = "";
if (i > 0 && a && v != null && a[m.key] != null) {
const d = v - a[m.key];
const shown = d.toFixed(m.dp);
if (Number(shown) !== 0) diff = `<span class="diff">${d > 0 ? "+" : ""}${shown}</span>`;
}
const est = m.key === "fork_offset_used" && p.row.offset_estimated ? `<span class="est" title="Estimated from the wheelbase">est.</span>` : "";
return `<td class="num">${fmt(v, m.dp)}${m.unit && v != null ? `<span class="unit">${m.unit}</span>` : ""}${est}${diff}</td>`;
}).join("");
return `${groupRow}<tr><th scope="row" title="Higher means: ${m.higher}">${m.label}<div class="higher">Higher: ${m.higher}</div></th>${cells}<td class="strip-cell">${strip(m)}</td></tr>`;
}).join("");
const el = document.createElement("div");
el.className = "compare-scroll";
el.innerHTML = `<table class="compare-table"><thead>${head}</thead><tbody>${body}</tbody></table>`;
return el;
}Differences are shown against bike A. “est.” marks a fork offset this site estimated because the manufacturer doesn’t publish it. Standover and seat tube length are measured differently by each brand, so compare them with care.
What stands out
summary = {
if (picks.length < 2) return md`Pick at least two bikes.`;
const a = picks[0].row;
const name = p => `**${p.slot}** (${p.row.label}, size ${p.row.size_label})`;
const lines = [];
const listJoin = xs => xs.length < 3 ? xs.join(" and ") : `${xs.slice(0, -1).join(", ")}, and ${xs.at(-1)}`;
for (const p of picks.slice(1)) {
const b = p.row, out = [];
const d = k => (b[k] ?? NaN) - (a[k] ?? NaN);
const say = (k, tol, more, less, unit = " mm", dp = 0) => {
const v = d(k);
if (Number.isNaN(v) || Math.abs(v) < tol) return;
out.push(`${Math.abs(v).toFixed(dp)}${unit} ${v > 0 ? more : less}`);
};
say("stack", 10, "more stack (a taller front end)", "less stack (a lower front end)");
say("reach", 8, "more reach (a longer front end)", "less reach (a shorter front end)");
say("trail_calc", 5, "more trail (steadier steering)", "less trail (quicker steering)");
say("head_tube_angle", 0.75, "steeper head angle", "slacker head angle", "°", 1);
say("wheelbase", 15, "longer wheelbase", "shorter wheelbase");
say("chainstay", 8, "longer chainstays", "shorter chainstays");
say("bb_drop", 5, "more BB drop (sits lower between the wheels)", "less BB drop (sits higher)");
say("tyre_clearance_mm", 3, "more tyre room", "less tyre room");
lines.push(out.length
? `- Compared with **A**, ${name(p)} has ${listJoin(out)}.`
: `- ${name(p)} is within a few millimetres of **A** on every main measure.`);
}
for (const p of picks) {
if (p.row.toe_clearance != null && p.row.toe_clearance < 90)
lines.push(`- ${name(p)} has ${p.row.toe_clearance.toFixed(0)} mm between pedal and tyre, so toe overlap is likely in tight turns.`);
}
return md`${lines.join("\n")}`;
}Each bike in plain words
{
const wrap = document.createElement("div");
wrap.className = "explain-cards";
for (const p of picks) {
const card = explainCard(p.row, population, {heading: `<span class="slot-dot" style="background:${slotColours[p.slot]}">${p.slot}</span> ${p.row.label}, size ${p.row.size_label}${p.row.config === "standard" ? "" : ` (${p.row.config})`}`});
wrap.append(card);
}
return wrap;
}These sentences only flag differences big enough to notice on the road: at least 10 mm of stack, 8 mm of reach, 5 mm of trail, or 0.75° of head angle. The thresholds are rules of thumb, not standards.