Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 2.18 KB

README.md

File metadata and controls

55 lines (46 loc) · 2.18 KB

Project moved to AstroDraw/AstroChart

AstroChart

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.

Version: 2.0.1

  • 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]	
}

For detailed data description see AstroWebService.

Chart settings

Look into the settings.js

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

It might interest you