Adding target value in RGraph (Line chart)

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Muhammad Adnan on 6th December 2013
Is there a way to draw target value line in Rgraph to show variation of values from target . I mean add constant line in exisiting graph .

Best Regards

Muhammad Adnan
Posted by RGraph support on 6th December 2013
Hi there,

You will need to use the .getYCoord(value) function to get the YCoord and then use the standard canvas drawing API (eg moveTo/lineTo) to draw the line.

Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99

Add a reply

« Back to message list