SHARE
TWEET

Untitled

a guest Oct 19th, 2016 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. accessKey = "randomStaticString";
  2.             for(var x in data.items){
  3.               var item = data.items[x];
  4.               var id = item.id;
  5.               var forks = item.forks_count;
  6.               var issues =  item.open_issues_count;
  7.               var score = item.score;
  8.               var stars = item.stargazers_count;
  9.               var watchers = item.watchers_count;
  10.  
  11.               factory.requests[accessKey].chartData={};
  12.  
  13.               factory.requests[accessKey].chartData.push(
  14.                 {
  15.                   id :  {
  16.                           "forks_count" : forks,
  17.                           "open_issues_count" : issues,
  18.                           "score" : score,
  19.                           "stargazers_count" : stars,
  20.                           "watchers_count" : watchers
  21.                         }
  22.                 }
  23.               );
  24.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top