Unlisted
Edited
Nov 2, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof buildingEnergy = Inputs.select(d3.group(yearlyData, d => d.building), {label: "Select a Building"});
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof selectedBuilding = Inputs.select(d3.group(totalEnergy, d => d.building), {label: "Select a Building"});

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//buildings = [...new Set(totalEnergy.map(d => d.building))] //
Insert cell
Insert cell
years = [...new Set(totalEnergy.map(d => d.date.getFullYear()))];
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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