How do I use RGraph.text2.find to get the X axis labels?

« 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 Claus on 26th October 2017
I would like to use the RGraph.text2.find() function to locate the text objects that hold the labels along the X axis of a bar chart. For example, thus:

             var found = RGraph.text2.find({
                 id: 'cvs',
                 text: '10'
However, in a few situations, the text '10' may also occur as a label in the Y axis.

When RGraph.text2.find() returns an array of objects, how do I determine which of these objects are X axis labels?

Posted by Richard on 26th October 2017
Hi there,

You could use the tag option like this example does:

Which is documented here:


Add a reply

« Back to message list