Published
Edited
Apr 13, 2022
Insert cell
# Tutorial
Insert cell
url = " https://data.cityofberkeley.info/resource/4tbf-3yt8.json?$limit=100" //?$limit=1000
Insert cell
data = fetch( url ).then( res => res.json() ) //알트 엔터 또는 커맨드 엔터
Insert cell
import {navio} from "@john-guerra/navio"
Insert cell
navio(data)
Insert cell
import {table2Tree} from "@john-guerra/table-2-tree"
Insert cell
treeData = table2Tree( data, ["gender", "age", "city", "reason"] ) // 쉬프트엔터
Insert cell
height = 500
Insert cell
width = 500
Insert cell
import { chart } with { treeData as data, height, width} from "@thetylerwolf/day-10-treemap"
//import { chart } with { treeData as data } from "@analyzer2004/3d-treemap"
Insert cell
chart
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