{
const scatGenerator = (x, y) =>
vl
.markPoint({ tooltip: true })
.encode(
vl.y().fieldQ(y),
vl.x().fieldQ(x),
vl.tooltip(["Name", "Overall", "Potential"])
)
.height(100)
.width(100);
return vl
.concat(
scatGenerator("Overall", "Overall"),
scatGenerator("Potential", "Overall"),
scatGenerator("Finishing", "Overall"),
scatGenerator("Overall", "Potential"),
scatGenerator("Potential", "Potential"),
scatGenerator("Finishing", "Potential"),
scatGenerator("Overall", "Finishing"),
scatGenerator("Potential", "Finishing"),
scatGenerator("Finishing", "Finishing")
)
.columns(3)
.data(data)
.render();
}