Public
Edited
Apr 2, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
gridCarbonNoChange = {
let gridCarbonContent = [];
// assumes current carbon content. (returns list of 1)
for (let i = 0; i < num_years; i++) {
gridCarbonContent.push(1);
}
return gridCarbonContent;
}
Insert cell
Insert cell
current_carbon_content_in_grid= 2
Insert cell
Insert cell
op_reference = col1.op_reference
Insert cell
emb_reference = col1.emb_reference
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
# Appendix
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
year_start = 2020;
Insert cell
year_end = 2051;
Insert cell
num_years = year_end-year_start;
Insert cell
Insert cell
sum_reference_scenario = reference_scenario.reduce(function(a, b) { return a + b; }, 0);
Insert cell
sum_new_scenario = new_scenario.reduce(function(a, b) { return a + b; }, 0);
Insert cell
savings_total = sum_reference_scenario-sum_new_scenario;
Insert cell
Insert cell
Insert cell
Insert cell
lineGenerator = d3.line()
.x(d => x(d.year))
.y(d => y(d.value));
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {slider} from '@jashkenas/inputs'
Insert cell
geometric = require("geometric@1");
Insert cell
arr = require("arraygeous@0");
Insert cell
import {columns} from "@bcardiff/observable-columns"
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