Degree angle to a percentage height?!

Associate
Joined
28 Nov 2004
Posts
1,237
Location
Birmingham
Hi guys,

I have a admittedly weird graph (or radar chart) I am working with on a website. This is more of a mathematics question though so I'm posting here.

A line on my graph estends upwards on a % scale. So, lets say for instance this produces a 90% high graph on the scale of 100%.

Next i have to plot the x axis based on this. What the 90% height equates to is a 10 degree angle off the top most point of the y-axis. What I need to calculate is the % pull of the x-axis from this 10 degree angle.

Does this make any sense at all?? :)
 
Not to me! :p

<edit so this is not the most useless post ever>

I'm not sure I understand the concept of percentage you are using. Are you saying that this is a linear graph that at 100% of the x-axis is at 90% of the y-axis?

After that you just lose me even more....

PK!
 
Last edited:
ok, without making this even more complicated I've actually explained this a little wrong. :)
Here's the example I'm dealing with. the calculations to get the Y-axis column are all sound.

We have a series of questions which equate to a degree total. So, we may come out with a total of 40 degrees. Each 5 degrees account for a 1% reduction on the y-axis column....so 40 degrees = an 8% reduction so the y-axis plot would sit at 92%. From this point of the graph we then need a 40 dergree angle which, when the line is drawn at this angle will determine the point to plot on the x-axis.

Sorry this is so bonkers! I'm struggling to get my head around the logic too.

graph.jpg
 
Not sure I've fully understood what you're doing but if I've followed you correctly:

Y = 100-(angle/5)
X = Y Tan(angle)
 
Hi Kaiowas,
Thanks very much for that. This is a little beyond my mathematical ability but is:
X= Y Tan(angle)
meaning:
X= Y * Tan(angle) ?
 
Ok, i'll give that a go.
My example would work like this:

y = 100 - (40/5) = 92
x = 92 * Tan(40) = 77.2 (rounded)
 
Back
Top Bottom