Public
Edited
May 7
Insert cell
Insert cell
import {vl} from "@vega/vega-lite-api-v5"
Insert cell
import {printTable} from "@uwdata/data-utilities"
Insert cell
lab2output = FileAttachment("Lab2data.csv").csv()
Insert cell
printTable(lab2output.slice(0,5))
Insert cell
vl.markPoint()
.data(lab2output)
.encode(
vl.color().fieldN("c").legend({"values":["1","2","5","10","20"]}),
vl.x().fieldQ("time"),
vl.y().fieldQ("val"),
vl.tooltip().fieldQ("val").format(".0f")
)
.render()
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