Published
Edited
Oct 17, 2019
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
Insert cell
Insert cell
Insert cell
import { get_sources } from "@robinl/magic-energy-usage-and-carbon-emissions-converter"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
kwh_saved = gas_consumption_kwh * (percentage_from_heat_pump/100)/(heat_pump_scop-1)
Insert cell
Insert cell
annual_co2_saving_heat_pump = co2_from_boiler-(co2_from_boiler_new+heat_pump_co2)
Insert cell
total_co2_saving_heat_pump = 20 * annual_co2_saving_heat_pump
Insert cell
solar_panel_equivalent = per("gbp_to_generate_solar_schools_energy/kg_co2_from_grid_electricity") * total_co2_saving_heat_pump
Insert cell
change_text = {
if(change_in_bill > 0) {
return "increase"
} else {
return "decrease"
}
}
Insert cell
(1200-550)*20
Insert cell
import {slider} from "@jashkenas/inputs"
Insert cell
eu = require("@robinl/energy_usage@0.1.6")
Insert cell
per = eu.convert.per
Insert cell
d3 = require("d3-format")
Insert cell
fmt_num = function(d) {return d3.format(",.2r")(d)}
Insert cell
fmt_num_3 = function(d) {return d3.format(",.3r")(d)}
Insert cell
fmt_curr = function(d) {return d3.format(",.0d")(d)}
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