Public
Edited
Mar 24, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
bookarks_table
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
bookmarks_sample = FileAttachment("bookmarks_sample.json").json()
Insert cell
bookmarks_3_24_23 = FileAttachment("bookmarks_3_24_23.json").json()
Insert cell
bookarks_table = {
const links = [];
const queue = [...bookmarks_3_24_23.children];
while (queue.length > 0) {
const node = queue.pop();
if (node.type === "folder") {
queue.push(...node.children);
}
if (node.type === "link") {
links.push({
name: node.name,
link: node.link,
add_date: new Date(node.add_date * 1000)
});
}
}
return links;
}
Insert cell
import { Tree } from "@d3/tree"
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