Here’s the small subset of math that I use for the vast majority of visualizations - ideally it’s a good introduction to those who want to make pretty things with d3js, canvas, or other tools. In essence, I’ll try to explain four parts of Javascript’s built-in Math object: Math.cos(a), which we use to get x positions from anglesMath.sin(a), which we use to get y positions from anglesMath.atan2(y,
![Math for Pictures](https://cdn-ak-scissors.b.st-hatena.com/image/square/813cf1ddb0162e546cb140adcc7e426504f3cb2b/height=288;version=1;width=512/https%3A%2F%2Fmacwright.com%2Fimages%2F2013-03-05-math-for-pictures-thumbnail-image.jpg)