Published
Edited
Feb 1, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
render_data_table(data)
Insert cell
Insert cell
// Group 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
// Build your treemap here
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 {
group_notebook_instructions,
render_data_table,
table_styles
} from "@uw-info474/utilities"
Insert cell
table_styles
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more