I'm trying to plot data on a timeline using an Archimedean spiral as an axis using D3.js.
So what I need is a Javascript function where I pass it
- D a distance for each step
- S a number of steps
- X the distance between each spiral arm
The function will traverse the spiral arc for the distance of s*d and give me the x and y Cartesian coordinates (point S in the diagram where s=10). The first point at the centre of the spiral is at 0,0.
Thanks for all your help belwood. I tried plotting your example but it gets a bit strange when I plotted 5 consecutive points (see image at bottom).
I managed to find the answer at the link below. It looks like you were very close though.
Algorithm to solve the points of a evenly-distributed / even-gaps spiral?
My final implementation based on the link above.
http://s14.postimg.org/90fgp41o1/spiralexample.jpg