chart = Plot.plot({
grid: true,
width: width,
height: width/2,
facet:
{
data: table,
x: d => d.Day*10/10,
},
color: {
range: ["black","yellow"],
domain: [0,100],
},
x:
{
clamp: true,
axis: null,
},
y:
{
tickSize: 0,
domain: [-4000,100],
padding: 1,
clamp: true,
label: "Latitude",
transform: d => (d*100)-500,
tickFormat: d => d/100+5 + "°"
},
r: {
domain: [0,100],
range: [-10,100],
},
marks: [
Plot.ruleY([0,-15],{
stroke: "white",
strokeWidth: 1,
}),
Plot.dot(table, Plot.binX({r: "count", },
{
fill: "yellow",
x: "POINT_X",
y: "POINT_Y",
})
),
Plot.ruleY(table, Plot.binX({y: "median", },
{
x: "POINT_X",
y: "POINT_Y",
})
),
]
})