Skip to content

Adding a new symbol (point)

Arthur Fücher edited this page Aug 11, 2021 · 2 revisions

AstroChart knows how to render the following symbols:
Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, Chiron, Lilith, NNode

We want to have more symbols to make AstroChart better for anyone, so if you need a new symbol please open an issue.

Adding a new symbol

First, please check if there is no open issue related to this symbol.

  1. Add the new symbol in settings.js
  2. Create a function on svg.js that will draw the svg for the new symbol. You could check the existing functions as an example, like the sun
  3. Update getSymbol function in svg.js
  4. Open a PR 🎉
Clone this wiki locally