Graphing Line
Using ActionScript (Flash CS6) or JavaScript (Animate) need to graph a line for an eLearning lesson's survey scores. Kglad suggested a similar script for a different graph for a question that I asked: normal distribution graph to show data . The new graph is different : inverse proportion line with equation: y = -8.44x-31.12 .
The graph line larger sample results can be placed using an image. (here's the article with original graph-Figure 1- and data: https://scholar.google.com/scholar_url?url=https://brage.bibsys.no/xmlui/bitstream/handle/11250/277366/R%25F8ysamb_2014_… )
The challenge is placing a new survey score on that line if you only have X.
The Kglad script example was for a normal distribution, and only the X score indicator was moved on the X axis (Y in this example was a constant on the Y axis). This graph needs to move both X and Y and you only have X position and equation for the line (see above).
Would appreciate any help with AS script (and JS script if later using Animate) for this different line and graph. I have tried to adapt Kglad's script but with no success.
Thank you for your help.
