Plot.plot({
x: {
axis: null,
},
y: {
grid: true,
tickFormat: "s"
},
color: {
scheme: "plasma"
},
style: {
fontFamily: "Verdana",
fontSize: "12px"
},
fx: {
transform: (d) => {
console.log(d);
return d ? Math.floor(d * 5) / 5 : ""
},
transform: (d) => d ? d % 20 : "",
tickSize: 6,
tickRotate: -45,
label: "",
},
facet: {
data: cleanStudentResults ,
x: "Q4",
marginBottom: 200,
},
marks: [
Plot.barY(cleanStudentResults, Plot.groupX({y: "count"}, {x:"Q1"})),
Plot.ruleY[0]
],
height: 600,
marginLeft: 100,
})