NetTalk Central

Author Topic: live graphs using a free javascript library  (Read 4796 times)

stephen j ryan

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
live graphs using a free javascript library
« 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

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: live graphs using a free javascript library
« Reply #1 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

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
Re: live graphs using a free javascript library
« Reply #2 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: live graphs using a free javascript library
« Reply #3 on: April 30, 2014, 12:18:59 PM »
Hi Debra

Please I´m interested in your code to use http://www.highcharts.com/.
thanks
-----------
Regards
Alberto

stephen j ryan

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Re: live graphs using a free javascript library
« Reply #4 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 ..

stephen j ryan

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Re: live graphs using a free javascript library
« Reply #5 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 ..

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: live graphs using a free javascript library
« Reply #6 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