Plot.plot({
title: "Programming Language Version Numbers",
caption:
"Chart by: BreckYunits.com - Made with: ObservableHQ.com - Data Source: PLDB.io",
subtitle:
"Rust is on version 1. Python is on version 3. C# is on version 12. The average programming language is on version 2.9. 73% are on Version 0, 1 or 2. Only 5% have a major version greater than 10.",
y: { grid: false },
x: { ticks: 26 },
color: { legend: true },
marks: [
Plot.rectY(
data.filter((row) => row.latestMajorVersion < 26),
Plot.binX(
{ y: "count" },
{ x: "latestMajorVersion", fill: "rank", interval: 1 }
)
),
Plot.ruleY([0])
]
})