Published
Edited
Apr 30, 2022
2 forks
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
## Number of records by time
Insert cell
import { vl } from "@vega/vega-lite-api-v5"
Insert cell
originalData = (await FileAttachment("distances_smallv3@1.csv.zip")
.zip()
.then(res => res.file("distances_smallv3.csv").csv())).map(d => {
d.audio = d["group"].slice(0, 1) % 2 ? "Cocktail" : "Bubble";
d.technology = +d["group"].slice(0, 1) <= 2 ? "HMD" : "PC";
d.subGroup = d["group"].slice(2, 3);
d.x = d.distance * Math.cos(d.angle);
d.y = d.distance * Math.sin(d.angle);

d.condition = d.audio + " " + d.technology;
return d;
})
Insert cell
import {navio} from "@john-guerra/navio"
Insert cell
import { dataInput } from "@john-guerra/data-input"
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