Plot.plot({
width: width, height: width * 3 / 4,
marginRight: 50,
x: {grid: true, type: "log", base: 2},
y: {label: "1/ratio ->", grid: true, type: "log", base: 2},
marks: [
Plot.dot(shortReport, {
x: "Decompression speed",
y: d => 100 / d.Ratio,
fill: "Compressor name",
}),
Plot.text(shortReport, {
x: "Decompression speed",
y: d => 100 / d.Ratio,
text: d => d["Compressor name"],
dy: -5
}),
Plot.line(shortReport, {
curve: 'catmull-rom',
x: "Decompression speed",
y: d => 100 / d.Ratio,
z: d => d["Compressor name"].match(/^\w+/)[0],
stroke: d => d["Compressor name"].match(/^\w+/)[0],
sort: d => Number((d["Compressor name"].match(/-(\d+)$/) || [])[1])
}),
]
})