chart = Plot.plot({
width: width+300,
height: width,
facet:
{
data: array,
y: ((d=>d.Long_DMS*-1)),
inset: 10,
},
fy:
{
axis: null,
},
y: {
label: "",
axis: null,
type: "symlog",
domain: [0,10],
},
r: {
range: [1,10]
},
color: {
type: "categorical",
domain: (["BOL","BRA","COL","ECU","FR1","GUY","PER","SUR","VEN"]),
scheme: "tableau10",
},
marks: [
Plot.areaY(array,
Plot.binX({y: ("count"), thresholds: 350,
},
{
x: "doy",
sort: "doy",
fill: "red",
inset: -0.5,
curve: "basis",
stroke: "white",
strokeWidth: 2,
})),
]
})