Plot.plot({
grid: true,
facet: {
data: data102,
y: "Пол"
},
marks: [
Plot.rectY(data102, Plot.binX({y: "count"}, {x: "Год рождения", fill: "Пол"})),
Plot.ruleY([0, 50, 75, 100, 125, 145, 165]),
Plot.textY([75, 100, 125, 145, 165], {fill:"#a61F1a"})
],
color: {
legend: true
},
x: {
domain: [1996, 2000]
}
})