/AstroChart

A free and open-source JavaScript library for generating SVG charts to display planets in astrology.

Primary LanguageJavaScriptMIT LicenseMIT

AstroChart

GitHub release

A free and open-source JavaScript library for generating SVG charts to display planets in astrology. It does not calculate any positions of the planets in Universe.

  • Pure Javascript implementation without dependencies.
  • SVG graphics.
  • Tested code.

Example

How to use

<script src="js/astrochart.min.js"></script>
<script>
	window.onload = function(){	
		var chart = new astrology.Chart( 'paper', 800, 800);
		chart.radix( data );					
	};			
</script>

Known points

Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, Chiron, Lilith, NNode.

Data example

{
	"planets":{"Moon":[0], "Sun":[30], "Mercury":[60], ... },
	"cusps":[300, 340, 30, 60, 75, 90, 116, 172, 210, 236, 250, 274]	
}

Chart settings

Look into the settings.js

var settings = {SYMBOL_SCALE:2};
var chart = new astrology.Chart( 'paper', 800, 800, settings);

People

Creator: Kibo
Mantainer: afucher

It might interest you