Public
Edited
Apr 1
Paused
2 forks
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
outages_by_house_district
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
outages_by_senate_district
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
consumer_energy_outage_path = consumer_energy_outage_paths.sort(
(a, b) =>
Math.abs(extractDateFromFilename(a, "ce_") - target_date) -
Math.abs(extractDateFromFilename(b, "ce_") - target_date)
)[0]
Insert cell
consumer_energy_outages = {
const response = await fetch(
`https://corsproxy.bunkum.us/corsproxy/?apiurl=https://raw.githubusercontent.com/fgregg/consumer-energy-outages/main/data/${consumer_energy_outage_path}`
);
const data = await response.json();
return data;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
scraped_path = outage_paths.sort(
(a, b) =>
Math.abs(extractDateFromFilename(a, "dte_") - target_date) -
Math.abs(extractDateFromFilename(b, "dte_") - target_date)
)[0]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
kdbush = require("kdbush")
Insert cell
Insert cell
dte_house_districts = FileAttachment("dte_house_districts(1).json").json()
Insert cell
dte_senate_districts = FileAttachment("dte_senate_districts.json").json()
Insert cell
import { stormTracks } from "@fgregg/storm-tracks"
Insert cell
storm_tracks = show_storm_tracks
? stormTracks(storm_date, [-85, 41.5, -81.5, 44.5])
: []
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