{
let container = d3
.create("div")
.style("position", "static")
.style("width", "600px")
.style("height", "150px")
.style("position", "relative");
let svg = container.append("svg").attr("width", 600).attr("height", 150);
let pts_to_path = d3
.line()
.x((d) => d[0])
.y((d) => d[1]);
svg
.append("path")
.attr(
"d",
pts_to_path([
[10, 31],
[200, 31],
[200, 60]
])
)
.attr("stroke", "black")
.attr("fill", "none");
svg
.append("path")
.attr(
"d",
pts_to_path([
[10, 111],
[200, 111],
[200, 60]
])
)
.attr("stroke", "black")
.attr("fill", "none");
svg
.append("path")
.attr(
"d",
pts_to_path([
[200, 71],
[300, 71]
])
)
.attr("stroke", "black")
.attr("fill", "none");
let game14 = container.append(() => game_container(10, 10, 1, 4));
tippy(game14.node(), { content: tex`P_{14} = 0.9` });
let game32 = container.append(() => game_container(10, 90, 3, 2));
tippy(game32.node(), { content: tex`P_{32} = 0.3` });
let game13 = container.append(() => game_container(150, 50, "1", "3"));
game13.select("div:nth-child(2)").style("background", "#daa");
tippy(game13.node(), { content: tex`P_{13} = 0.8` });
container
.append("div")
.style("position", "absolute")
.style("width", "120px")
.style("height", "36px")
.style("top", `54px`)
.style("left", `300px`)
.style("border", "solid 1px black")
.style("text-align", "center")
.style("font-size", "20px")
.style("background-color", "#ffd700")
.text("Team 1!");
container.selectAll("div").style("cursor", "default");
return container.node();
}