graphiqueBarres = Plot.plot({
height: 800,
width: 1150,
marginLeft: 50,
marginRight: 10,
marginTop: 50,
marginBottom: 65,
x: {
domain: annees,
type: "band",
tickFormat: d => d.toString(),
tickRotate: -45,
label: "",
inset: 10,
},
y: {
label: "",
marginLeft: "20px",
grid: true
},
marks: [
Plot.rectY(donsFM, Plot.binX({y: "count"}, {x: "dateAcquisition", fill: "genreAssocie",
thresholds:60,order: ["Féminin", "Mixte"]}))
],
color: {
type: "categorical",
range: [bordeau, jaune],
legend: true,
},
style:{
backgroundColor: noir,
color: gris,
fontSize: "16px",
}
})