Published
Edited
Aug 26, 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
JSON.stringify(relative_heat_requirements)
Insert cell
relative_heat_requirements.filter(function(d) {
return d["thermostat" ] ==10 })
Insert cell
function get_thermostat_adjustment(thermostat_current, thermostat_future) {
let current = relative_heat_requirements.filter(function (d) {
console.log(d["thermostat"])
return d["thermostat"] == thermostat_current
})
console.log(current[0])
return current[0]
current = current[0]["heat_required"]

let future = relative_heat_requirements.filter(function (d) {
return d["thermostat"] == thermostat_future
})
current = current[0]["heat_required"]

return future/current

}
Insert cell
get_thermostat_adjustment(19,20)
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