parallelPlot = Plot.plot({
marginLeft: 260,
marginRight: 20,
height: selectedPredictions.length * 60,
x: {
axis: null
},
y: {
padding: 0.1,
domain: attribs,
label: "Time Usage Type",
tickPadding: 15,
},
color: {
type: "categorical",
scheme: schemec,
legend: true,
},
marks: [
Plot.ruleY(attribs, {
stroke: "black",
strokeWidth: 1
}),
Plot.line(parallelData, {
...xy,
z: "model",
stroke: (d) => d.datum.model,
strokeWidth: 2.9,
strokeOpacity: 0.9
}),
Plot.text(ticks, {
...xy,
text: "value",
fontSize: 12,
fill: "black",
stroke: "white",
strokeWidth: 3
})
]
})