managerChart = {
return vl
.markCircle({
}).config({
axis: {
labelFont: "monospace",
labelFontSize: 10,
titleFont: "cursive",
titleFontSize: 20
},
title: {
fontSize: 50,
font: "cursive"
}
})
.data(data.filter(d=>d.To === 2021))
.encode(
vl.y().fieldQ("W-L%").scale({zero:false}),
vl.x().fieldQ("G"),
vl.tooltip(["Mgr", "W-L%", "Ejections"])
)
.width(width *.5)
.height(width * .4)
.background('floralwhite')
.title("Active MLB Managers")
.render()
}