New RGraph AJAX functions

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 RGraph support on 20th April 2013
Hi there,

The RGraph.AJAX function now has a few new additional functions that will help with data types. Because AJAX responses are always strings (text) they need to be converted to the relevant data type (eg numbers) before they can be given to RGraph. The new functions are:

o RGraph.AJAX.getNumber(url, callback)
o RGraph.AJAX.getString(url, callback)
o RGraph.AJAX.getCSV(url, callback[, seperator])
o RGraph.AJAX.getJSON(url, callback)



Richard, RGraph support
Posted by Goldy on 23rd April 2013
Do I need to download the libraries again or is there a way to update the libraries to get started with using these new functions
Posted by RGraph support on 23rd April 2013
Hi there,

It's important that you use libraries from the same release - you can't mix and match - so you should download the beta. What you can do is download different releases into a directory structure like this:

/javascript/RGraph <-- Symlink pointing to the relevant RGraph release
/javascript/RGraph_2013-04-21
/javascript/RGraph_2013-04-13
/javascript/RGraph_2013-04-06

And use URLs like this:

/javascript/RGraph/RGraph.common.core.js
/javascript/RGraph/RGraph.common.effects.js
/javascript/RGraph/RGraph.bar.js

etc

And then when you upgrade you can just change the link to point at the new directory.



Richard, RGraph Support

5 developer license with Priority support for £299:
   www.rgraph.net/license#five-developer

Add a reply




« Back to message list