import {Plot} from "@mkfreeman/plot-tooltip"
result_data_ojs = transpose(result_data)
Plot.plot({
color: {
legend: false,
type: "pow",
//scheme: "oranges"
range: ["#fef3e4","#F6B352"]
},
y: {
grid: false,
label:"Home"
},
x: {
grid: false,
label:"Away",
axis: "top"
},
marks: [
Plot.cell(result_data_ojs, {
x: "GA",
y: "GH",
fill: "frac",
title: d => d.GH + " : " + d.GA + "\n\n" +d.frac?.toFixed(3) + "%"
}),
Plot.text(result_data_ojs, {
x: "GA",
y: "GH",
text: d => d.frac?.toFixed(3) + "%",
fill: d=> (d.frac>=5.5) ? "black" : "black"
})
],
style: {
background: "#383A3F",
fill: "#D3D3D3",
fontFamily: "Poppins",
fontSize: "20px"
},
tooltip: {
stroke: "white",
color: "#F68657"
},
height: 950,
width: 950,
marginLeft: 50,
marginRight: 50,
marginTop: 50,
marginBottom: 50,
insetTop: 0,
insetBottom: 0,
insetLeft: 0,
insetRight: 0
})
Result Statistics
Stats from more than 1 million matches played world-wide since 1890
Result Matrix
Average goals
Home field advantage
Home field advantage per year and continent
Home field advantage per country
(all matches played since 2010)
(Last update: 2025-04-15)