Published
Edited
Oct 10, 2020
4 forks
Importers
92 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
//mutable referenceDate = "2020-06-12"
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mutable referenceDate = dataDate
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dataSinceBaseLine.filter(d => d.location =="Cñplohilev2")
Insert cell
Insert cell
Insert cell
dataGroupedByCountry.filter(d => d.location=="Uruguay")
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
data.filter(d => d.location=="Chile")
Insert cell
_.last(data.filter(d => d.location=="Chile v2"))
Insert cell
DOM.download(new Blob([d3.tsvFormat(data), {type: "text/tsv"}]), "data_covid_world.tsv")
Insert cell
Insert cell
data_.filter(d=> d.location =="ChileV2")
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
dataChileV2 = {
const data = dataChile_MinCiencia.map(d => {
const record = _.cloneDeep(d);
record.location = `${record.location} v2`
record.total_deaths = dataFallecidosChile[record.date];
return record;
})
return data;
}

Insert cell
dataChile = dataChile_MinCiencia
//dataChile = dataChile_MinCienciaMenos553
Insert cell
Insert cell
Insert cell
dataChileV3 = {
const data = dataChile_MinCienciaMenos553.map(d => {
const record = _.cloneDeep(d);
record.location = `${record.location} v3`
return record;
})
return data;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//d3.csv("https://chilecracia.org/826acc1f-03bc-4e75-b724-41f0e8e25ea4")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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