Object.assign(
Plot.plot({
width: 2800,
height: 700,
caption: html`This chart is a <b>extra laaaaarge</b>. `,
style: { maxWidth: "2800px" },
x: {
tickFormat: Plot.formatWeekday("de"),
tickSize: 0,
domain: [1, 2, 3, 4, 5, 6, 0],
axis: "top"
},
y: {
axis: null
},
color: {
scheme: myScheme
},
fy: {
},
facet: {
data: data,
x: (d) => d.date.getUTCMonth(),
y: (d) => d.date.getUTCFullYear()
},
marks: [
Plot.cell(data, {
y: (d) => d3.timeMonday.count(d3.utcMonth(d.date), d.date),
x: (d) => d.date.getUTCDay(),
fill: "precipitation",
title: (d) => d.date
}),
Plot.axisFx({
axis: "top",
dy: -14,
tickFormat: Plot.formatMonth("de", "long")
})
]
}),
{ style: `max-width: ${width}px; overflow: scroll` }
)