myGraph = Plot.plot({
title: `Chronology of public art: ${categoryFilter}`,
height: chartHeight,
width: chartWidth,
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: genderIdentities,
range:[burgundy, black, grey, yellow, blue, yellow],
legend: true
},
x: {
tickRotate: -45,
grid: true,
}
})