Trigonometry relates angles to positions and lengths. In a radial visualization, it converts each month’s angle and circle radius into the endpoint of an SVG axis. section 14.5.1
For an axis forming a right-angled triangle:
- Calculate the horizontal coordinate with x = radius × sin(θ). section 14.5.1
- Calculate the vertical coordinate with y = −radius × cos(θ), accounting for SVG’s vertical direction. section 14.5.1
- Map twelve months across 0 to 2π − 2π/12 radians so January sits at twelve o’clock. section 14.5.1
Radial month axes
A Svelte component uses d3-scale’s point scale for month angles, then assigns each SVG line an origin of (0, 0) and sine/cosine-derived endpoints.

