0
In my javascript code I use this expression to make a calculation to get value of a graph with the mouse position (Posy). 460 is the position of my axis, and the maximum and minimum of the graph values of the y axis.
value = ((460 - posY) * (maxtemp-txtmintemp)/(460-60)+txtmintemp);
From this expression I wanted to get the Y position, and I have the value, as for example this:
10.30 = ((460 - posY) * (maxtemp-txtmintemp)/(460-60)+txtmintemp);
How can I calculate this expression, isolating Posy, which is the value I want to get.
What are the values of
maxtemp
andtxtmintemp
?– Sergio
These are the minimum and maximum values of my y-axis. In this case the minimum is 2 and the max is 96.
– akm
Using this, I think to arrive at the value I want. http://es.solvemymath.com/calculated/algebra/resolver_ecuaciones.php
– akm
And this what do you want?
m
andmaxTemp
,n
andtxtMinTemp
andx
and thevalue
.– Omni