Plot.plot({
title: `Chronology of public artworks`,
width: chartWidth,
height: chartHeight,
marginBottom: 50,
marks: [
Plot.dot(chartData, Plot.dodgeY({
x: "date",
fill:"gender",
sort: "gender",
title: "title",
tip: true,
href:"url",
target: "_blank"}))
],
color: {
type: "categorical",
domain: ["woman", "non binary", "man", "mixed", "collective", "unknown"],
range: [bordeau, turquoise, noir, jaune, jaune, gris],
legend: true
},
x: {
grid: true,
tickRotate: -45
},
})