Plot.plot({
y: {
grid: true,
label: "Ganancias mensuales ($)"
},
x: {
label: "Fecha"
},
marks: [
Plot.areaY(Estadisticas, { x: "mes", y1: "min", y2: "max", fillOpacity: 0.3, fill: "steelblue" }),
Plot.lineY(Estadisticas, { x: "mes", y: "min", stroke: "blue", strokeWidth: 2 }),
Plot.lineY(Estadisticas, { x: "mes", y: "max", stroke: "green", strokeWidth: 2 }),
Plot.lineY(Estadisticas, { x: "mes", y: "mean", stroke: "red", strokeWidth: 2, strokeDasharray: "4,4" })
]
});