Plot.plot({
padding: 0,
marginLeft: 0.15 * width,
width: 0.85 * width,
x: {axis: null, label: "Rank", grid: true, type: "band" },
y: {label: null, grid: true},
color: {type: "linear", scheme: "Oranges"},
marks: [
Plot.dot(team_ranks_prev, {x: "rank", y: "team", fill: "score", symbol: "square", r: 9, dx: 0, dy: 0}),
Plot.dot(team_ranks_prev2, {x: "rank", y: "team", fill: "score", symbol: "square", r: 5, dx: 0, dy: 0}),
Plot.dot(team_ranks_current, {x: "rank", y: "team", fill: "score", symbol: "square", r: 13, dx: 0, dy: 0,
sort: {
y: "data",
reduce: ([d]) => 33 - d.week_rank
}}),
Plot.text(team_ranks_current, {x: "rank", y: "team", text: (d) => d.rank, fill: (d) => d.score > 0.70 ? "white": "black"})
]
})