I am trying to use jQuery and graph plugin http://www.flotcharts.org/ to plot 
JSON based LIVE graphs with Build statistics and have few questions:

1. Where do i copy the .js files ? 
2. This needs to be self updating , How do i achieve that ?
3. Here is the JSON data


so if we have the url: 
http://143.122.173.89:8080/job/ONATHENA/lastSuccessfulBuild/api/json

we get the following JSON;

{"actions":[{"causes":[{"shortDescription":"Started by an SCM 
change"}]},{},{},{}],"artifacts":[],"building":false,"description":null,"duration":13705,"estimatedDuration":1041730,"fullDisplayName":"ONATHENA
 
#29","id":"2012-10-25_10-01-43","keepLog":false,"number":29,"result":"SUCCESS","timestamp":1351173703026,"url":"http://localhost:8080/job/ONATHENA/29/","builtOn":"ATHENA","changeSet":{"items":[{"affectedPaths":["bin/admin/analyze_submission_failures.pl"],"author":{"absoluteUrl":"http://localhost:8080/user/tole","fullName":"tole"},"commitId":"246289","msg":"add
 print statement of found 
feedgroup","timestamp":1351171074458,"date":"2012-10-25T13:17:54.458087Z","msg":"add
 print statement of found
 
feedgroup","paths":[{"editType":"edit","file":"/perlapp/trunk/bin/admin/analyze_submission_failures.pl"}],"revision":246289,"user":"tole"},{"affectedPaths":["bin/admin/prowl_err_files.pl"],"author":{"absoluteUrl":"http://localhost:8080/user/tole","fullName":"tole"},"commitId":"246286","msg":"Make
 more tolerant of SHANDS innocuous 
messages","timestamp":1351170883261,"date":"2012-10-25T13:14:43.261361Z","msg":"Make
 more tolerant of SHANDS innocuous 
messages","paths":[{"editType":"edit","file":"/perlapp/trunk/bin/admin/prowl_err_files.pl"}],"revision":246286,"user":"tole"}],"kind":"svn","revisions":[{"module":"http://svn.hq.c.corp/trunk","revision":246289}]},"culprits":[{"absoluteUrl":"http://localhost:8080/user/tole","fullName":"tole"}]}


I think https://github.com/flot/flot has all that i need to accomplish this, 
but i am not too sure HOW 
Anyone with some experience in this area could please enlighten me
Thanks,
-Kamal.

Reply via email to