Plot.plot({
x: {label: "Segundos (s)", labelAnchor: "center"},
y: {label: "Voltaje (V)", labelAnchor: "center"},
title: "Imán orientado N-S pasando por una bobina de 520 vueltas",
marginBottom: 70,
marginRight: 50,
inset: 8,
grid: true,
color: {
legend: true,
},
marks: [
Plot.ruleY([0]),
Plot.lineY(data, {x: "Segundos", y: "Voltaje"})
]
})