Object.assign(
Plot.plot({
height: 10000,
caption: "",
width: 1500,
marginTop: 40,
marginRight: 20,
marginLeft: 100,
marginBottom: 30,
padding: 0,
color: { scheme: "YlGnBu" },
style: { "font-size": 10, fontstroke: "#91bfdb", maxWidth: "20000px" },
x: {
type: "band",
label: "Available Imaging Data",
paddingInner: 0.1,
domain: [
"CT-1",
"CT-2",
"CTA",
"DWI",
"ADC",
"3D-T1",
"3D-FLAIR",
"T1",
"T2",
"T2-FLAIR"
]
},
fx: {
domain: [
"ses-clinical",
"ses-study-MR",
"18-mon-follow-up",
"36-mon-follow-up"
]
},
facet: { data: summary, x: "timepoint" },
y: {
type: "band",
padding: 0.15,
label: "All NorCOAST subjects"
},
marks: [
Plot.cell(summary, {
x: "modality",
y: "subject-id",
fill: "count"
}),
Plot.text(summary, { x: "modality", y: "subject-id", text: "modality" }),
Plot.gridX({ stroke: "#0868a3" }),
Plot.gridY({ stroke: "#0868a3" })
]
}),
{
style: `max-width: ${width}px; overflow: scroll; max-height: 500px; overflow-y: scroll`
}
)