Published
Edited
May 25, 2019
Insert cell
Insert cell
Insert cell
offsetToLongitude = scales.scaleLinear().domain([-12, 12]).range([180, -180])
Insert cell
timeZone = -8
Insert cell
projection = d3[name]().rotate([offsetToLongitude(timeZone), -90]).clipAngle(70)
Insert cell
Insert cell
Insert cell
renderMap()
Insert cell
Insert cell
colors = ({
land: 'rgba(100, 140, 255, 0.75)',
graticule: '#eee',
country: '#bbb',
outline: '#bbb',
})
Insert cell
scales = require('d3-scale')
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