Skip to content

Zodiac

Utilities for working with zodiac signs and astrological positions.

Gets the zodiac sign for a given degree position.

Parameters:

  • degrees — Position in degrees (0–360)

Returns: Zodiac sign name (e.g., “Aries”, “Taurus”)

Gets the starting degree for a zodiac sign.

Parameters:

  • sign — Zodiac sign name

Returns: Starting degree position (0–360)

import { getZodiacSign, getZodiacDegrees } from '@astrodraw/astrochart'
const sign = getZodiacSign(120) // "Leo"
const degrees = getZodiacDegrees('Aries') // 0