Plot.plot({
marginLeft: 170,
x: { axis: "both" },
marks: [
Plot.barX(presidents, {
y: (d) => d["Name"],
x: "Very Favorable %"
}),
Plot.axisY({
label: null,
textAnchor: "end",
fill: "black",
tickPadding: 18
}),
Plot.image(presidents, {
y: "Name",
x: 0,
dx: -12,
r: 9,
preserveAspectRatio: "xMidYMin slice",
src: "Portrait URL"
}),
Plot.gridX({ interval: 10, stroke: "#DCDCDC", strokeOpacity: 0.5 })
]
})