wideCompsChart = Plot.plot({
marginLeft: 275,
marginBottom: 40,
width: 1000,
x: {
label: "Time in Months",
grid: true,
labelAnchor: "center",
},
y: {
label: "Journal"
},
color: {
range: pattern.rangeURLs,
legend: true,
},
style: {
backgroundColor: "#fcf5f0",
fontFamily: "Comme",
fontSize: "12pt",
},
marks: [
patterns,
Plot.barX(timebars, {
x1: (d) => d.low == d.high ? d.low - ZEROWIDTH : d.low,
x2: (d) => d.low == d.high ? d.high + ZEROWIDTH: d.high,
y: "journal",
sort: {y: "y"},
fill: function(d){
if (d.journal.includes("Post45")) {
return "Post45 " + (d.type == DECISION ? DECISION : PUBLICATION);
} else {
return d.type == DECISION ? DECISION: PUBLICATION;
}
},
fillOpacity: .9,
mixBlendMode: "darken",
title: (d) => (`Time to ${d.type}: ` + (d.low == d.high ? `${d.low} `: `${d.low} - ${d.high} `) + "Months"),
}),
Plot.ruleX([0]),
Plot.frame(),
],
caption: html`Response time data for journals other than <i>Post45</i> were taken from the <a href="https://www.mla.org/Publications/MLA-International-Bibliography/About-the-MLA-International-Bibliography/MLA-Directory-of-Periodicals">MLA Directory of Periodicals</a> (accessed May 2023). Data on <i>Post45</i> is based on submissions since 2020 (not including special issue submissions)
`,
});