Plot.plot({
round: true,
marginLeft: 0,
x: {label: null, insetLeft: 36},
marks: [
Plot.gridY({
strokeDasharray: "0.75,2",
strokeOpacity: 1
}),
Plot.axisY({
tickSize: 0,
dx: 38,
dy: -6,
lineAnchor: "bottom",
tickFormat: (d, i, _) => (i === _.length - 1 ? `$${d}` : d)
}),
Plot.ruleY([0]),
Plot.line(aapl, {x: "Date", y: "Close", markerEnd: "dot"})
]
})