Published
Edited
Dec 14, 2020
1 fork
Importers
5 stars
Insert cell
Insert cell
Insert cell
chart = createTree(
d3.hierarchy(data),
d => d.data.name,
height,
fontSize,
margin
)
Insert cell
Insert cell
Insert cell
Insert cell
viewof fontSize = slider({
title: "fontSize",
min: 1,
max: 20,
value: 10,
step: 1
})
Insert cell
viewof height = slider({
title: "height",
min: 100,
max: 1600,
value: 600,
step: 10
})
Insert cell
Insert cell
Insert cell
Insert cell
margin = ({ top: 20, right: 10, bottom: 20, left: 10 })
Insert cell
Insert cell
Insert cell
data = FileAttachment("data.json").json()
Insert cell
Insert cell
import { slider } from '@jashkenas/inputs'
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