Public
Edited
Aug 2, 2023
Paused
7 forks
Importers
8 stars
Insert cell
Insert cell
Insert cell
chart = Treemap(flare, {
path: d => d.id.replace(/\./g, "/"), // e.g., "flare/animate/Easing"
group: d => d.id.split(".")[1], // e.g., "animate" in "flare.animate.Easing"; for color
label: d => d.id.split(".").pop().split(/(?=[A-Z][a-z])/g).join("\n") + "\n",
title: d => `${d.id}\n${d.value?.toLocaleString()}`, // text to show on hover
width: 1152,
height: 1152
})
Insert cell
flare = FileAttachment("flare.csv").csv({typed: true})
Insert cell
Insert cell
import {Treemap} from "@d3/treemap"
Insert cell
import {Swatches} from "@d3/color-legend"
Insert cell
import {howto} from "@d3/example-components"
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