Plot.plot({
marks: [
Plot.line(energy, { x: "year", y: "quadrillion_btu", stroke: "type"}),
Plot.dot(energy, {
x: "year",
y: "quadrillion_btu",
fill: "type",
stroke: "white",
tip: true,
r: 4
}),
Plot.frame()
],
x: { tickFormat: "Y", type: "linear", label: "Year"},
y: { domain: [0, 45], label: "Quadrillion BTU"},
color: {scheme: "Accent", legend: true},
grid: true
})