AstroAsk Docs

Chart rendering

North Indian charts and Western wheels as SVG or PNG — every image below was generated by the live API generators.

Two dedicated endpoints turn a birth moment into a ready-to-embed chart image:

  • POST /v1/chart/north-indian — the North Indian (diamond) Vedic chart
  • POST /v1/chart/western-wheel — the Western natal wheel with aspect lines

Both take the standard birth input plus render options, and return either { svg } (default) or, with "format": "png", { png, width, height } where png is base64.

curl -X POST https://api.astroask.app/v1/chart/north-indian \
  -H "X-API-Key: ak_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "date": "1990-01-15T10:30:00", "lat": 28.6139, "lng": 77.2090, "theme": "dark" }'

Every image on this page was produced by the same generator code the endpoints run — this is actual API output for the quickstart's example birth (New Delhi, 15 Jan 1990, 10:30), not an illustration.

North Indian, light theme (with positions table)

North Indian chart, light theme

North Indian, dark theme

North Indian chart, dark theme

North Indian, chart only (showTable: false)

North Indian chart without table

Western wheel with aspect lines

Western natal wheel

Render options

North Indian (/chart/north-indian): theme ("light" | "dark" | custom color record), showTable, width, height, layout ("row" | "column"), tableWidth, planetRenderMode ("glyph" | "text"), showCenterOrnament.

Western wheel (/chart/western-wheel): houseSystem, theme, showTable, width, height, wheelSize, rotateToAscendant, planetRenderMode, signRenderMode ("glyph" | "text"), fillZodiacElements.

SVG or PNG?

  • SVG (default) — resolution-independent, tiny over the wire (~20 KB), styleable, ideal for web embedding.
  • PNG ("format": "png") — for chat apps, emails, PDFs or any surface that can't render SVG. The response reports the exact rendered pixel dimensions.

The same wheel is also available inline: /western accepts "format": "svg" and returns the identical image alongside nothing else — the /chart/* endpoints exist so image generation has a clean, dedicated contract.