Published
Edited
Apr 28, 2020
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
data = d3.csv(
"https://raw.githubusercontent.com/info474-s17/m14-layouts/master/exercise-1/data/prepped_data.csv",
d3.autoType
)
Insert cell
Insert cell
// Nest by region
Insert cell
// Transform into a hierarchy (but don't yet specify the sum() function)
Insert cell
// Write a function that can compute treemap layout
Insert cell
// Make a color scale for the regions
Insert cell
Insert cell
Insert cell
// Draw the visualization
Insert cell
appendix = md`## Appendix`
Insert cell
d3 = require("d3")
Insert cell
import { select } from "@jashkenas/inputs"
Insert cell
height = 500
Insert cell
import { displayCaution } from "@info474/utilities"
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