Published
Edited
Feb 1, 2022
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
rightCircle = (number, scale) => {
return (Math.PI * scale(number)) ^ (1 / 2);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = d3.csv(
"https://docs.google.com/spreadsheets/d/e/2PACX-1vQMR1-bYb7suOwI4byUZm4u7yC4NJ5uBvfMxQUkMihIRk_8wyCRZEYqwkv-VQFCpgZV_ztq5bYYaccp/pub?gid=840869262&single=true&output=csv",
({
country,
year,
annual_co2_emissions_per_capita,
gdp_per_capita,
population,
continent
}) => ({
country,
year: +year,
co2EmissionsPerCapita: +annual_co2_emissions_per_capita,
gdpPerCapita: +gdp_per_capita,
population: +population,
continent
})
)
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