headcount.js 1.1 KB

1234567891011121314151617181920212223
  1. var headcount = [
  2. {date: "1/2009", dept: "eng", type: "perm", headcount: 140},
  3. {date: "1/2009", dept: "eng", type: "temp", headcount: 39},
  4. {date: "1/2009", dept: "sales", type: "perm", headcount: 209},
  5. {date: "1/2009", dept: "sales", type: "temp", headcount: 123},
  6. {date: "4/2009", dept: "eng", type: "perm", headcount: 160},
  7. {date: "4/2009", dept: "eng", type: "temp", headcount: 44},
  8. {date: "4/2009", dept: "sales", type: "perm", headcount: 229},
  9. {date: "4/2009", dept: "sales", type: "temp", headcount: 113},
  10. {date: "7/2009", dept: "eng", type: "perm", headcount: 174},
  11. {date: "7/2009", dept: "eng", type: "temp", headcount: 41},
  12. {date: "7/2009", dept: "sales", type: "perm", headcount: 224},
  13. {date: "7/2009", dept: "sales", type: "temp", headcount: 169},
  14. {date: "10/2009", dept: "eng", type: "perm", headcount: 190},
  15. {date: "10/2009", dept: "eng", type: "temp", headcount: 43},
  16. {date: "10/2009", dept: "sales", type: "perm", headcount: 232},
  17. {date: "10/2009", dept: "sales", type: "temp", headcount: 185}
  18. ];
  19. (function() {
  20. var df = pv.Format.date("%m/%y");
  21. headcount.forEach(function(d) { d.date = df.parse(d.date); });
  22. })();