NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: stephen j ryan on April 29, 2014, 03:46:13 PM

Title: live graphs using a free javascript library
Post by: stephen j ryan on April 29, 2014, 03:46:13 PM
Anyone of you web talk gurus using a live graph with a javascript library?

i would love to know how to do this using nettalk, IE

where to respond to the request from the browser and how to send the data back to the javascript graph.

new to javascript and NT and web

many thanks
Title: Re: live graphs using a free javascript library
Post by: Djordje Radovanovic on April 29, 2014, 11:17:49 PM
I done it.
If your graph is populated with standard data (ex: year to date revenue) better prepare your graph data on server and just get it from server as graph is requested than to prepare every time when user access it. If you have many users with same request it could be hard work for your server.

Here is some js code I am using. First function is better to position in a header of page and second function which retrieve data on bottom of page, it is assure you that all involved functions are into browser when they start to executing. Function GetRadial depend on what JS you are using and circular.json supply data for preparing graph. This circular.json is something you can prepare on server to wait ready for display no meter how many users ask for it.

       function GetRadial(data) {
         // code that display your JS graph
      };

          $.getJSON("circular.json", function (prviData) {
         GetRadial(prviData);})

 Best regards,

Djordje Radovanovic
Title: Re: live graphs using a free javascript library
Post by: debzidoodle on April 30, 2014, 04:46:52 AM
I have used http://www.highcharts.com/.  Its free for non-commercial use.  If you are after non-commercial let me know and I will see if I can get you some sample code.

Thanks,

Debra
Title: Re: live graphs using a free javascript library
Post by: Alberto on April 30, 2014, 12:18:59 PM
Hi Debra

Please I´m interested in your code to use http://www.highcharts.com/.
thanks
Title: Re: live graphs using a free javascript library
Post by: stephen j ryan on April 30, 2014, 12:58:06 PM
I have used http://www.highcharts.com/.  Its free for non-commercial use.  If you are after non-commercial let me know and I will see if I can get you some sample code.

Thanks,

Debra

hi debra, it would be great to see some coded examples.. looking at JS videos, strange little language so i need as much help as i can get!!!

many thanks ..
Title: Re: live graphs using a free javascript library
Post by: stephen j ryan on April 30, 2014, 02:40:38 PM
I think after looking at real time graphing, server loads, XML verus Comma delimited im starting to think a server created graph displayed as an image might be good enough ..
Title: Re: live graphs using a free javascript library
Post by: Bruce on April 30, 2014, 10:16:55 PM
Obviously (or maybe not obviously, which is why I'm saying it) Insight is good for this.
http://www.capesoft.com/accessories/isgsp.htm

cheers
Bruce