Plot.plot({
style: {
fontSize: "16px",
fontFamily: "Manrope",
maxWidth: "1300px",
overflow: "scroll"
},
marginLeft: 20,
marginBottom: 40,
// width,
width: 1300,
x: {
label: "Week",
domain: [new Date("2024-01-01"), new Date("2024-12-31")]
},
y: {
label: "Papers read",
},
marks: [
Plot.axisX({label: null}),
Plot.ruleY([0]),
Plot.axisY({label: null, ticks: 0, tickSize: 0}),
Plot.ruleY([2], {stroke: "#E17C05", strokeDasharray: "3,2"}),
Plot.rectY(papers,
Plot.binX(
{y: "count"}, // Reducing function
{
x: "timestamp",
y: "total",
fill: "#A52C60",
interval: d3.utcWeek,
tip: {
format: {
// Format as nice date + remove 2 spaces for things like "January 2"
x: (d) => d3.utcFormat("%B %e")(d).replace(/ +/g, ' '),
y: true
},
fontSize: 14
}
}
),
),
// Add glowy line for current date
Plot.ruleX(
[new Date()],
{stroke: "#EDAD08", strokeWidth: 2, imageFilter: "drop-shadow(1px 1px 2px white)"}
),
]
})
Paper reading
2024 reading goals!
I have a goal to read at least two academic articles every week in 2024 to work through the massive backlog of PDFs in my multiple “To Read” Zotero folders. Here’s where I’m tracking my progress.