Published
Edited
Jan 23, 2019
13 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
projection = d3.geoAlbersUsa().fitSize([width, height], geojsonWithData)
Insert cell
Insert cell
pathGeneratorStatic = d3.geoPath()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
transform = matrix(1, 0, 0, Math.cos(a * Math.PI / 180), 0, 0)
Insert cell
Insert cell
function matrix(a, b, c, d, tx, ty) {
return d3.geoTransform({
point: function(x, y) {
const x1 = x;
const y1 = y - height / 2;
const x2 = a * x1 + b * y1;
const y2 = c * x1 + d * y1;
const x3 = x2;
const y3 = y2 + height / 2;
this.stream.point(x3, y3)
}
});
}
Insert cell
Insert cell
pathGenerator = d3.geoPath(transform)
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
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

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