chart = Plot.plot({
width: width+300,
height: width,
clip: true,
facet:
{
data: array,
y: ((d=>d.Long_DMS*-1)),
x: "Lat2",
inset: 10,
},
fx: {
reverse: true,
},
fy:
{
},
y: {
domain: [0,20],
clamp: true,
},
r: {
range: [1,10]
},
color: {
type: "categorical",
domain: (["BOL","BRA","COL","ECU","FR1","GUY","PER","SUR","VEN"]),
scheme: "tableau10",
},
marks: [
Plot.ruleY([0]),
Plot.rectY(array,
Plot.binX({y: "count", thresholds: 52},
{
x: "Week",
sort: "doy",
fill: "red",
inset: -0.5,
})),
]
})