Published
Edited
Apr 2, 2020
1 fork
19 stars
Also listed in…
Coronavirus
Insert cell
Insert cell
Insert cell
tidy = data.flatMap(({Type, Name, ...dates}) => (
Object.entries(dates).map(([date, Change]) => (
{ Type, Name: `${Name} (${Type})`, Date: `${date}/2020`, Change: Change / 100 }
))
))
Insert cell
data = d3.csvParse(await FileAttachment("state_of_industry_data@5.csv").text(), d3.autoType)
Insert cell
Insert cell
d3 = require('d3-dsv@1')
Insert cell
import { vl } from '@vega/vega-lite-api'
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