Plot.plot({
x: {
type: "band",
domain: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
tickFormat: Plot.formatMonth("de-DE", "short")
},
marks: [
Plot.ruleY([0]),
Plot.lineY(data_pred, {
x: (d) => d["x"].getMonth(),
y: "y",
curve: "natural",
stroke: "orange",
strokeWidth: 3,
strokeDasharray: [1, 5]
}),
Plot.dot(
data_pred.filter((d, i) => i > 0),
{
x: (d) => d["x"].getMonth(),
y: "y",
r: 5,
fill: "orange"
}
),
Plot.lineY(data_raw, {
x: (d) => d["x"].getMonth(),
y: "y",
curve: "natural",
marker: true,
strokeWidth: 3
})
]
})