The sine of an angle in a right triangle is the opposite-side length divided by the hypotenuse. In a circular visualization, multiply the radius by sin(θ) to find an axis endpoint’s horizontal position. section 14.5.1
Use sine when positioning radial elements:
- Represent each month with an angle from 0 to nearly 2π using a point scale. section 14.5.1
- Set an SVG line’s horizontal endpoint to radius × sin(angle). section 14.5.1
- Pair sine with cosine for the vertical endpoint, reversing its sign for SVG’s downward y-axis. section 14.5.1
Month axes in a radial chart
For each month, draw an SVG line from (0, 0) to (radius × Math.sin(monthScale(month)), −radius × Math.cos(monthScale(month))). January begins at twelve o’clock.


