Public
Edited
Insert cell
Insert cell
Plot.plot({
padding: 0,
x: {axis: null},
y: {tickFormat: Plot.formatWeekday("en", "narrow"), tickSize: 0},
fy: {tickFormat: ""},
color: {scheme: "PiYG", legend: true, label: "Daily change", tickFormat: "+%", domain: [-0.06, 0.06]},
marks: [
Plot.cell(dji, {
x: (d) => d3.utcWeek.count(d3.utcYear(d.Date), d.Date),
y: (d) => d.Date.getUTCDay(),
fy: (d) => d.Date.getUTCFullYear(),
fill: (d, i) => i > 0 ? (d.Close - dji[i - 1].Close) / dji[i - 1].Close : NaN,
title: (d, i) => i > 0 ? ((d.Close - dji[i - 1].Close) / dji[i - 1].Close * 100).toFixed(1) : NaN,
inset: 0.5
})
]
})
Insert cell
full_completion_history_2.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
dji = FileAttachment("full_completion_history_2.csv").csv({typed: true})
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more