Code Monkey home page Code Monkey logo

Comments (5)

Kibo avatar Kibo commented on June 18, 2024

Hi
thanks a lot for the report, there is a bug.

Please, can you send your complete code?

Thanks

from astrochart.

cptolemy avatar cptolemy commented on June 18, 2024

Good morning,

Thanks for the reply. Yes, of course. Exactly what code do you need? The data array for the natal and transit data?
Meanwhile, I've noticed that the error does not occur IF we increase the canvas of the chart and lower the scale of the glyphs (no collision issues...)

Kind regards,

from astrochart.

Kibo avatar Kibo commented on June 18, 2024

Exactly what code do you need?

Please, your JavaScript, if is it possible. For instance:

<script type="text/javascript">  
        
        	var dataRadix = {	
        				"planets":{"Moon":[45.930008627285154],"Venus":[263.2584780960899],"Jupiter":[173.07043720306802],"NNode":[174.6895307834239],"Mars":[217.97167231451178],"Lilith":[196.19480722950317],"Saturn":[252.92341772675047],"Chiron":[348.1157239728284],"Uranus":[16.7900184974611],"Sun":[297.68062428797253],"Mercury":[289.10132025725494],"Neptune":[338.01899718442604],"Pluto":[285.6473452237151, -0.123]},
        				"cusps":[348.20510089894015,38.108507808919654,65.20783751818992,84.96083001338991,103.77897207128007,127.1084408347092,168.20510089894015,218.10850780891965,245.20783751818993,264.9608300133899,283.77897207128007,307.1084408347092]
        	};
        	
		    var dataTransit = {
		    		"planets":{"Moon":[60.739220451080115],"Venus":[305.6996431634707],"Jupiter":[198.6565699576221],"NNode":[157.25592636170012],"Mars":[324.84013049518734],"Lilith":[232.88904207991555],"Saturn":[259.1015412368795, -0.2],"Chiron":[350.7285587924208],"Uranus":[20.678747795787075],"Sun":[260.94912160755536],"Mercury":[281.5699804920016],"Neptune":[339.3848859932604],"Pluto":[286.29683069280685]},
		    		"cusps":[296, 350, 30, 56, 75, 94, 116, 170, 210, 236, 255, 274]		    				    	
		    };
			                              	        	        	        	            
        	window.onload = function () {
            	var chart = new astrology.Chart( 'paper', 600, 600, {MARGIN:100, SYMBOL_SCALE:0.8});
            	var radix = chart.radix( dataRadix );
            	
            	// Aspect calculation
				// default is planet to planet, but it is possible add some important points:															
            	radix.addPointsOfInterest( {"As":[dataRadix.cusps[0]],"Ic":[dataRadix.cusps[3]],"Ds":[dataRadix.cusps[6]],"Mc":[dataRadix.cusps[9]]});
            	
				var transit = radix.transit( dataTransit );
				transit.aspects(); 																													 																																																            													            	        
			};
		</script>

Meanwhile, I've noticed that the error does not occur IF we increase the canvas of the chart and lower the scale of the glyphs (no collision issues...)

Please, try change:
astrology.COLLISION_RADIUS
https://github.com/Kibo/AstroChart/blob/master/project/src/settings.js#L161

For instance
var chart = new astrology.Chart( 'paper', 600, 600, {COLLISION_RADIUS:6});

Thanks

from astrochart.

cptolemy avatar cptolemy commented on June 18, 2024

Good morning,

I'm sorry for the late reply - thanks for your help.

Changing the Collision_radius does the job, along with increasing a a little the map. The problem is that in my own birthdate I had almost all the planets together in Taurus ;) Looking now at the Chrome debug console, the collisions are all solved without any error.

Clear skies

Kepler

from astrochart.

Kibo avatar Kibo commented on June 18, 2024

This issue was divided to

  1. Maximum call stack size exceeded
  2. Compare function does not exist

from astrochart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.