Back to article »
Talent Traffic
Scaled by company size
|
Original (unscaled)
|
Roll your own
// Traffic ratios scaled by company size. // Company objects. Indexes from this array should correspond with the // indices of the flow ratio matrix. companies = [ {name: 'Google', color: '#dd2724', numEmployees: 28786}, {name: 'Microsoft', color: '#796138', numEmployees: 89000}, {name: 'Apple', color: '#5ed4fa', numEmployees: 46600}, {name: 'LinkedIn', color: '#8ccf28', numEmployees: 1288}, {name: 'Yahoo', color: '#915aab', numEmployees: 13600}, {name: 'Facebook', color: '#0078ad', numEmployees: 2500} ]; // Company-size-scaled flow matrix. See http://goo.gl/7VvmN for format // and source. flowMatrix = [ [ null, 1.68, 0.80, 1.00, 6.77, 1.00], [ 1.00, null, 1.00, 1.00, 23.56, 1.00], [ 1.00, 2.62, null, 1.00, 26.04, 1.00], [ 0.21, 0.03, 1.00, null, 4.07, 1.00], [ 1.00, 1.00, 1.00, 1.00, null, 1.00], [ 1.35, 0.86, 0.59, 3.88, 1.93, null] ];
// Original traffic ratios - unscaled by company size. // Company objects. Indexes from this array should correspond with the // indices of the flow ratio matrix. companies = [ {name: 'Google', color: '#dd2724'}, {name: 'Microsoft', color: '#796138'}, {name: 'Apple', color: '#5ed4fa'}, {name: 'LinkedIn', color: '#8ccf28'}, {name: 'Yahoo', color: '#915aab'}, {name: 'Facebook', color: '#0078ad'} ]; // Flow matrix. See http://goo.gl/7VvmN for format and source. flowMatrix = [ [ null, 5.20, 1.30, 1.00, 3.20, 1.00], [ 1.00, null, 1.00, 1.00, 3.60, 1.00], [ 1.00, 5.00, null, 1.00, 7.60, 1.00], [ 4.80, 2.20, 1.00, null, 43.00, 1.00], [ 1.00, 1.00, 1.00, 1.00, null, 1.00], [ 15.50, 30.50, 11.00, 2.00, 10.50, null] ];
This
work
is licensed under a
Creative Commons Attribution 3.0 Unported License
.