Skip to content

Introduction

AstroChart is a pure SVG, zero-dependency library for rendering interactive astrology charts directly in web browsers.

AstroChart specializes in visualizing astrological data as beautiful, interactive SVG charts. It can render:

  • Radix Charts — A snapshot of the sky at a specific time and location
  • Transit Charts — Real-time planetary positions overlaid on a radix chart
  • Aspects — Angular relationships between planets with customizable lines and colors
  • Animations — Smooth transitions between chart states
  • Custom Symbols — Replace default symbols with your own SVG designs

All of this happens client-side in the browser, with no external API calls or backend dependencies.

AstroChart is not an ephemeris calculator. It does not compute planetary positions, house cusps, or aspects — it only renders them. You must provide the planetary data (coordinates, house positions, aspects) from another source.

For calculating planetary positions, consider:

FeatureDetails
Pure SVGAll charts render as scalable vector graphics, perfect for any screen size
Zero DependenciesNo jQuery, React, Vue, or other libraries required
Framework AgnosticUse with vanilla JavaScript, React, Vue, Angular, or any framework
Fully CustomizableControl colors, fonts, symbol styles, and rendering modes
TypeScript ReadyComplete type definitions included for type-safe code
InteractiveAdd click handlers to zodiac signs, houses, and planets
LightweightSmall bundle size (~50 KB minified, ~15 KB gzipped)
Terminal window
npm install @astrodraw/astrochart
<div id="chart"></div>
import { Chart } from '@astrodraw/astrochart'
const data = {
planets: {
Sun: [12.45, 0],
Moon: [145.67, 0],
Mercury: [8.23, 0],
Venus: [35.12, 0],
Mars: [162.34, 0]
},
cusps: [315.45, 35.67, 65.23, 92.45, 125.67, 155.89,
135.45, 215.67, 245.23, 272.45, 305.67, 335.89]
}
const chart = new Chart('chart', 600, 600)
chart.radix(data)

That’s it! You now have a fully rendered astrology chart.

Here’s a basic radix chart rendered with AstroChart:

AstroChart requires:

  • Modern browsers with SVG support (IE11+ with polyfills)
  • ES2015+ JavaScript support

AstroChart is released under the MIT License. See the GitHub repository for details.

Found a bug? Have a feature request? We’d love your help! See the Contributing Guide for instructions.


Ready to dive in? Get started now.