Published
Edited
Jun 25, 2021
Insert cell
Insert cell
md`*A final version of this notebook can be viewed on my blog [here](https://www.robinlinacre.com/fill_country_solar/).*`
Insert cell
Insert cell
Insert cell
total_kwh = md`If we covered this much of the UK with solar panels, we'd generate about ${d3.format(",.0f")(kwh_per_person_per_day)} kWh a day per person.

See [here](http://robinlinacre.com/country_energy_usage) for daily energy usage by country`
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
kwh_per_person_per_day = kwh_uk_total * solar_perc / 66e6
Insert cell
// Area in square meters multiplied by watts per square meter
kwh_uk_total = 242.495e9 * (20/1000) * 24
Insert cell
md`## Imports`
Insert cell
Insert cell
import {plot_fill_percentage_of_uk} from "@robinl/map-fill-component-second-attempt"
Insert cell
d3 = require("d3")
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more