Published
Edited
Oct 21, 2020
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
tree(data);
Insert cell
Insert cell
tree = data => {
const root = d3.hierarchy(data);
root.dx = 10;
root.dy = width / (root.height + 1);
return d3.tree().nodeSize([root.dx, root.dy])(root);
}
Insert cell
Insert cell
import {traversals} from "@serman/amaru_datasets"
Insert cell
import {stage_analysis} from "@serman/amaru_datasets"
Insert cell
import {detailed_lcia} from "@serman/amaru_datasets"
Insert cell
import {fragments} from "@serman/amaru_datasets"
Insert cell
import {contribution_analysis} from "@serman/amaru_datasets"
Insert cell
d3 = require("d3@6")
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