Public
Edited
Aug 13, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
leadville = {
let leadville = await FileAttachment("leadville@1.csv").csv();
let min = Infinity;
leadville.forEach(function (o) {
let [h, m, s] = o.Time.split(":").map((t) => parseInt(t));
o.time = h + m / 60 + s / 60 ** 2;
if (o.time < min) {
o.new_record = true;
min = o.time;
} else {
o.new_record = false;
}
});
return leadville;
}
Insert cell
import { Swatches } from "@d3/color-legend"
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