Notebooks 2.0 is here.

Published
Edited
Aug 10, 2020
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Hihger res polygons, but has fewer country matches
// mapJsonData = d3.json("https://raw.githubusercontent.com/simonepri/geo-maps/master/previews/countries-coastline.geo.json")
Insert cell
// From Google Analytics but not in correct format for eash geojson map
// mapJsonData = d3.json("https://gist.githubusercontent.com/distantshape/f9032f3c8445229046013bf2daceaf9d/raw/5691d7c6ca685b9f54e98aa9914e6d606fa9d9b5/map-world-country.json")
Insert cell
// Very large with very high ploygon resolution
// mapJsonData = d3.json("https://raw.githubusercontent.com/datasets/geo-countries/master/data/countries.geojson")
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