Plot.plot({
color: {legend: true},
grid : true,
y:{ label: 'Количество ↑' },
x:{ label: 'Год рождения' },
marks: [
Plot.barY(comp.filter(x => x.pol == 'ж'), {x: "age", y: "count", fill:"pol"}),
Plot.barY(comp.filter(x => x.pol == 'м'), {x: "age", y: "count", fill:"pol"}),
Plot.ruleY([0]),
]
})