Published
Edited
Mar 31, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
years = { let y = new Set(dates.map(
({case_year}) => case_year
))
return Array.from(y).sort()
}
Insert cell
all = {
let all = Array(years)
for(let y in years){
let c = 0
for (let j in dates){
if(dates[j].case_year == years[y]){
c+=1
}
}
all[y] = {date: new Date(`01-01-${years[y]}`), count:c}
}
return all
}

Insert cell
import { vl } from "@vega/vega-lite-api"


Insert cell
import {text} from "@jashkenas/inputs"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more