Spider Web chart?

Richard Gaskin ambassador at fourthworld.com
Tue Mar 10 22:41:47 EDT 2015


David Epstein wrote:

 > Richard Gaskin asked for code useful for making a spider web chart.
 > I think the function below would help.  Both the grid and the plots
 > will be polygons whose points can be conveniently specified by their
 > distance from an origin and their angle on a circle.
 >
 > function yAD x,y,d,a, at xAD
 >   -- calculate point x1,y1 that is distance d and angle a from point x,y
 >   -- return y1, load x1 into param 5
 >   -- a is in degrees, positive is east of north
 >   put (90-a)*2*pi/360 into a
 >   put x + d*cos(a) into xAD
 >   return y + d*sin(a)
 > end yAD

Thank you, David. I've been the recipient of much goodwill today in 
response to my query: Scott Rossi and Bernd also sent me some useful code.

I'll put it to good use.

Thanks, all!

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and Web
  ____________________________________________________________
  Ambassador at FourthWorld.com        http://www.FourthWorld.com




More information about the use-livecode mailing list