Published
Edited
Feb 7, 2019
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
transform = d3.geoTransform({
point: function(x, y) {
// translate
const y1 = y - height / 2;
// rotate
const y2 = Math.cos(a * Math.PI / 180) * y1;
// translate back
const y3 = y2 + height / 2;

this.stream.point(x, y3);
}
})
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