Public
Edited
Jan 20, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
geom = d3.json(
"https://raw.githubusercontent.com/neocarto/bertin/main/data/world.geojson"
)
Insert cell
m = gender ? 0.1 : 2 / 3
Insert cell
Insert cell
bertindata = bertin.merge(geom, "NAMEen", data, "country")
Insert cell
individualsusinginternetbygender = FileAttachment("IndividualsUsingInternetByGender.xlsx").xlsx()
Insert cell
sheet_name = individualsusinginternetbygender.sheetNames[0]
Insert cell
headers = individualsusinginternetbygender.sheet(sheet_name)[2]
Insert cell
Insert cell
Insert cell
Insert cell
max_w_imbalance = d3.max(data, (d) => d.imbalance_f)
Insert cell
max_m_imbalance = d3.max(data, (d) => d.imbalance_m)
Insert cell
avg_w = d3.mean(data, (d) => d.female)
Insert cell
avg_m = d3.mean(data, (d) => d.male)
Insert cell
avg_m - avg_w
Insert cell
Insert cell
Insert cell
bertin = require(`bertin@${lastpatch}`)
Insert cell
d3 = require("d3@7", "d3-geo-projection@4")
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