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

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