Public
Edited
Nov 20, 2022
1 fork
7 stars
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

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