How can I dynamically load JS files with RGraph?

« 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 Ileven on 16th April 2014
hi, Richard

    I want to reload dynamic the js-files which is in the libraries, the codes is

     try {
       eval($.getScript(""), function() {
             var c = new RGraph.Bar("cvsBar", data).draw();
     } catch(e) {


but it doesn't work,and also there is no error information log show? How to dynamic load those files?
Posted by Richard on 16th April 2014
Hi there,

I don't think you'll need the eval() calls, plus you'll want to wait until all the scripts are loaded until you create the bar chart. There's a stackoverflow question about that here:


Add a reply

« Back to message list