Plot.plot({
y: { grid: true, domain: [0, 300] },
x: { type: "log", domain: [0.0001, 1000] },
color: { legend: true },
marginRight: 100,
marks: [
Plot.ruleY([1]),
Plot.ruleY(
notations.map((d) => d.value),
{ strokeWidth: 1, strokeDasharray: "4 1" }
),
Plot.text(notations, {
x: 1000,
y: "value",
dx: 4,
text: "name",
textAnchor: "start"
}),
Plot.dot(data, {
x: "Pressure (GPa)",
y: "Temp (K)",
r: 4,
fill: "TYPE",
title: "YEAR"
})
]
})