Public
Edited
Apr 16, 2024
Insert cell
Insert cell
Insert cell
title_string = `Long-run cost of ${coal_or_gas} power in `
Insert cell
Insert cell
export_svg(document.getElementsByTagName("svg")[0])
Insert cell
coal_or_gas = "coal"
Insert cell
Insert cell
time_delay = 3000
Insert cell
capacity_cutoff = 100
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//width = 1500
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
y_max = 100
Insert cell
y = d3
.scaleLinear()
.domain([0, y_max]) //d3.max(stacked_data, seriesMax)])
.rangeRound([height - margin.bottom, margin.top])
Insert cell
Insert cell
Insert cell
Insert cell
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