Back to Docs

SVG Transit Chart Generator

SVG Transit Chart Generator

POST/api/v1/natal/chart/transits

Generate a bi-wheel transit chart showing current planetary positions overlaid on a natal chart. Natal planets appear in the outer ring (blue by default), transit planets in the inner ring (red by default). Full control over colors, aspect lines, and visual styling.

For unknown natal birth time, pass natal.time_known: false to omit houses and angles.

Full URL

https://api.freeastroapi.com/api/v1/natal/chart/transits

Natal Subject Parameters (nested inside natal object)

Birth chart details for the subject.

ParameterTypeRequiredDefaultDescription
namestringYes-Subject name
yearintegerYes-Birth year
monthintegerYes-Birth month (1-12)
dayintegerYes-Birth day (1-31)
hourintegerYes-Birth hour (0-23)
minuteintegerYes-Birth minute (0-59)
time_knownbooleanNotrueSet false when natal birth time is unknown. Houses and angles are omitted on the natal wheel.
citystringNo-Birth city. Optional when lat/lng are provided.
latfloatNoautoBirth latitude. Required with lng if city is omitted.
lngfloatNoautoBirth longitude. Required with lat if city is omitted.
tz_strstringNoAUTOTimezone (e.g. 'Europe/London' or 'AUTO')
house_systemstringNoplacidusplacidus, whole_sign, equal, koch, etc.
zodiac_typestringNotropicaltropical or sidereal
formatstringNosvgOutput format: 'svg' or 'png'
sizeintegerNo700Chart width/height in pixels
theme_typestringNolightTheme: 'light', 'dark', or 'mono'
png_quality_scalefloatNo2.0PNG resolution multiplier (1.0-5.0)
show_metadatabooleanNotrueShow metadata block in chart

Transit Parameters (top-level)

Where and when to calculate the transit sky.

ParameterTypeRequiredDefaultDescription
current_citystringYes-City for transit planet positions
current_latfloatNoautoTransit latitude (optional)
current_lngfloatNoautoTransit longitude (optional)
transit_datestringNonowTransit datetime ISO format: YYYY-MM-DDTHH:MM (defaults to current moment)
tz_strstringNoAUTOTimezone for transit location

Aspect Line Visibility (top-level)

Control which sets of aspect lines are drawn.

ParameterTypeRequiredDefaultDescription
show_inter_aspectsbooleanNotrueShow transit→natal aspect lines (cross-aspects)
show_natal_aspectsbooleanNofalseShow natal→natal aspect lines
show_transit_aspectsbooleanNofalseShow transit→transit aspect lines

Planet Colors (top-level)

Override planet symbol and degree text colors per ring. Pass null to use each planet's elemental color.

ParameterTypeRequiredDefaultDescription
natal_planet_colorstringNo#1565C0Color for natal planet symbols + degree text (hex). Null = elemental colors.
transit_planet_colorstringNo#C62828Color for transit planet symbols + degree text (hex). Null = elemental colors.

Display Settings (inside natal.display_settings)

Control which bodies appear on the natal ring.

ParameterTypeRequiredDefaultDescription
sunbooleanNotrueShow Sun
moonbooleanNotrueShow Moon
mercurybooleanNotrueShow Mercury
venusbooleanNotrueShow Venus
marsbooleanNotrueShow Mars
jupiterbooleanNotrueShow Jupiter
saturnbooleanNotrueShow Saturn
uranusbooleanNotrueShow Uranus
neptunebooleanNotrueShow Neptune
plutobooleanNotrueShow Pluto
north_nodebooleanNotrueShow North Node
chironbooleanNotrueShow Chiron
lilithbooleanNotrueShow Mean Black Moon Lilith (legacy alias for mean_lilith)
mean_lilithbooleanNofalseShow Mean Black Moon Lilith
true_lilithbooleanNofalseShow True (oscillating) Black Moon Lilith
erisbooleanNofalseShow Eris
erosbooleanNofalseShow Eros
part_of_fortunebooleanNofalseShow Part of Fortune

Chart Configuration (inside natal.chart_config)

Fine-tune the visual appearance of the chart. All parameters are optional and placed inside the natal.chart_config object.

ParameterTypeRequiredDefaultDescription
sign_ring_thickness_fractionfloatNo0.16Sign ring thickness (0.0–1.0)
house_ring_thickness_fractionfloatNo0.05House ring thickness (0.0–1.0)
center_disk_fractionfloatNo0.45Center disk radius (0.0–1.0)
planet_symbol_scalefloatNo0.35Planet symbol size multiplier
sign_symbol_scalefloatNo0.6Sign symbol size multiplier
house_number_scalefloatNo0.35House number size multiplier
chart_backgroundstringNonullBackground color override (hex)
custom_planet_colorstringNonullOverride all planet colors (hex). Null = elemental colors.
custom_sign_colorstringNonullOverride all sign symbol colors (hex)
custom_house_colorstringNonullOverride all house number colors (hex)
custom_sign_bg_colorstringNonullSingle hex color for all 12 sign ring backgrounds. When set, sign backgrounds are automatically enabled.
custom_house_bg_colorstringNonullSingle hex color for all 12 house ring backgrounds. When set, house backgrounds are automatically enabled.
sign_line_widthfloatNo2.0Sign separator line width
house_line_widthfloatNo1.0House separator line width
asc_line_widthfloatNo-ASC axis line width
mc_line_widthfloatNo-MC axis line width
aspect_conjunction_widthfloatNo-Conjunction aspect line width
aspect_trine_widthfloatNo-Trine aspect line width
aspect_opposition_widthfloatNo-Opposition aspect line width
aspect_square_widthfloatNo-Square aspect line width
aspect_sextile_widthfloatNo-Sextile aspect line width
show_retrograde_markersbooleanNofalseEnable retrograde markers on planet degree labels.
retrograde_marker_stylestringNoRRetrograde marker style when enabled: "R" or "rx" (℞).
houses_inside_planetsbooleanNotruePlace houses inside planet ring (recommended for transit bi-wheel)
french_stylebooleanNofalseFrench bi-wheel layout: aspect disk inside sign rim, natal houses outside signs, natal planets outside houses, and transit planets in an outer lane.
french_planet_radius_offsetfloatNo0French-mode natal planet lane offset. Moves natal planet glyphs radially without moving the house/sign rings.
french_transit_planet_radius_offsetfloatNo24Regular French transit-mode planet lane offset. Moves transit glyphs radially without moving natal rings.
french_transit_degree_label_offsetfloatNo-28French transit-mode degree label offset. Positive moves labels inward; negative moves them outward.
french_transit_natal_planets_insidebooleanNofalseFrench transit-mode variant. Moves the house ring, house numbers, and aspect disk inside like the normal SVG chart, places user/natal planets inside the sign ring, and keeps current-sky/transit planets outside.
french_transit_natal_inner_radius_offsetfloatNo0French transit-mode inner-natal variant. Adjusts the inner user planet lane radius.
french_transit_inner_natal_house_gapfloatNo60French transit-mode inner-natal variant. Gap from sign inner ring to house outer ring; larger values make the house ring and aspect disk smaller.
french_transit_inner_natal_planet_radius_offsetfloat | nullNonullFrench transit-mode inner-natal variant. Overrides the current-sky/transit planet lane offset; null uses the close default for this mode.

Sample Code

curl -X POST "https://api.freeastroapi.com/api/v1/natal/chart/transits" \
 -H "Content-Type: application/json" \
 -H "x-api-key: YOUR_API_KEY" \
 -d '{
    "natal": {
        "name": "John Doe",
        "year": 1990,
        "month": 5,
        "day": 15,
        "hour": 14,
        "minute": 30,
        "time_known": false,
        "city": "London",
        "tz_str": "AUTO",
        "size": 700,
        "theme_type": "light",
        "format": "svg",
        "chart_config": {
            "custom_sign_bg_color": "#e8e0f0",
            "custom_house_bg_color": "#e0f0f8",
            "show_retrograde_markers": true,
            "retrograde_marker_style": "R",
            "french_style": true,
            "french_planet_radius_offset": 0,
            "french_transit_planet_radius_offset": 24,
            "french_transit_degree_label_offset": -28,
            "french_transit_natal_planets_inside": false,
            "french_transit_natal_inner_radius_offset": 0,
            "french_transit_inner_natal_house_gap": 60,
            "french_transit_inner_natal_planet_radius_offset": null,
            "custom_planet_color": null
        }
    },
    "current_city": "New York",
    "transit_date": "2026-02-26T12:00",
    "show_inter_aspects": true,
    "show_natal_aspects": false,
    "show_transit_aspects": false,
    "natal_planet_color": "#1565C0",
    "transit_planet_color": "#C62828"
}' --output transit_chart.svg

Related Endpoints