Add VT2-examples: all 6 chapters of 'Visualize This' (110 files) — data scraping, ETL, trends, categorical, multivariate, spatial, distribution analysis
This commit is contained in:
1 parent
088771a9cf
commit
b42b866a8c
110 files changed
+400895
No files matched your search
@@ -0,0 +1,51 @@
|
||||
Rk,Player,Pos,Age,Tm,G,GS,MP,FG,FGA,FGpct,3P,3PA,3Ppct,2P,2PA,2Ppct,eFGpct,FT,FTA,FTpct,ORB,DRB,TRB,AST,STL,BLK,TOV,PF,PTS,Player-additional
|
||||
1,Joel Embiid,C,28,PHI,66,66,34.6,11.0,20.1,.548,1.0,3.0,.330,10.0,17.1,.587,.573,10.0,11.7,.857,1.7,8.4,10.2,4.2,1.0,1.7,3.4,3.1,33.1,embiijo01
|
||||
2,Luka Dončić,PG,23,DAL,66,66,36.2,10.9,22.0,.496,2.8,8.2,.342,8.1,13.8,.588,.560,7.8,10.5,.742,0.8,7.8,8.6,8.0,1.4,0.5,3.6,2.5,32.4,doncilu01
|
||||
3,Damian Lillard,PG,32,POR,58,58,36.3,9.6,20.7,.463,4.2,11.3,.371,5.4,9.4,.574,.564,8.8,9.6,.914,0.8,4.0,4.8,7.3,0.9,0.3,3.3,1.9,32.2,lillada01
|
||||
4,Shai Gilgeous-Alexander,PG,24,OKC,68,68,35.5,10.4,20.3,.510,0.9,2.5,.345,9.5,17.8,.533,.531,9.8,10.9,.905,0.9,4.0,4.8,5.5,1.6,1.0,2.8,2.8,31.4,gilgesh01
|
||||
5,Giannis Antetokounmpo,PF,28,MIL,63,63,32.1,11.2,20.3,.553,0.7,2.7,.275,10.5,17.6,.596,.572,7.9,12.3,.645,2.2,9.6,11.8,5.7,0.8,0.8,3.9,3.1,31.1,antetgi01
|
||||
6,Jayson Tatum,SF,24,BOS,74,74,36.9,9.8,21.1,.466,3.2,9.3,.350,6.6,11.8,.558,.543,7.2,8.4,.854,1.1,7.7,8.8,4.6,1.1,0.7,2.9,2.2,30.1,tatumja01
|
||||
7,Stephen Curry,PG,34,GSW,56,56,34.7,10.0,20.2,.493,4.9,11.4,.427,5.1,8.8,.579,.614,4.6,5.0,.915,0.7,5.4,6.1,6.3,0.9,0.4,3.2,2.1,29.4,curryst01
|
||||
8,Kevin Durant,PF,34,TOT,47,47,35.6,10.3,18.3,.560,2.0,4.9,.404,8.3,13.4,.617,.614,6.5,7.1,.919,0.4,6.3,6.7,5.0,0.7,1.4,3.3,2.1,29.1,duranke01
|
||||
9,LeBron James,PF,38,LAL,55,54,35.5,11.1,22.2,.500,2.2,6.9,.321,8.9,15.3,.580,.549,4.6,5.9,.768,1.2,7.1,8.3,6.8,0.9,0.6,3.2,1.6,28.9,jamesle01
|
||||
10,Donovan Mitchell,SG,26,CLE,68,68,35.8,10.0,20.6,.484,3.6,9.3,.386,6.4,11.3,.566,.572,4.7,5.4,.867,0.9,3.3,4.3,4.4,1.5,0.4,2.6,2.5,28.3,mitchdo01
|
||||
11,Devin Booker,SG,26,PHO,53,53,34.6,9.9,20.1,.494,2.1,6.0,.351,7.8,14.2,.554,.546,5.8,6.8,.855,0.9,3.7,4.5,5.5,1.0,0.3,2.7,3.0,27.8,bookede01
|
||||
12,Kyrie Irving,PG-SG,30,TOT,60,60,37.4,9.9,20.1,.494,3.1,8.3,.379,6.8,11.8,.574,.572,4.1,4.6,.905,1.0,4.1,5.1,5.5,1.1,0.8,2.1,2.8,27.1,irvinky01
|
||||
13,Jaylen Brown,SF,26,BOS,67,67,35.9,10.1,20.6,.491,2.4,7.3,.335,7.7,13.4,.576,.550,3.9,5.1,.765,1.2,5.7,6.9,3.5,1.1,0.4,2.9,2.6,26.6,brownja02
|
||||
14,Ja Morant,PG,23,MEM,61,59,31.9,9.3,19.9,.466,1.5,4.9,.307,7.8,15.0,.519,.504,6.1,8.1,.748,1.0,4.9,5.9,8.1,1.1,0.3,3.4,1.6,26.2,moranja01
|
||||
15,Trae Young,PG,24,ATL,73,73,34.8,8.2,19.0,.429,2.1,6.3,.335,6.1,12.7,.476,.485,7.8,8.8,.886,0.8,2.2,3.0,10.2,1.1,0.1,4.1,1.4,26.2,youngtr01
|
||||
16,Zion Williamson,PF,22,NOP,29,29,33.0,9.8,16.2,.608,0.2,0.7,.368,9.6,15.5,.618,.615,6.1,8.6,.714,2.0,5.0,7.0,4.6,1.1,0.6,3.4,2.2,26.0,willizi01
|
||||
17,Anthony Davis,C,29,LAL,56,54,34.0,9.7,17.2,.563,0.3,1.3,.257,9.3,15.9,.589,.573,6.2,7.9,.784,3.5,9.1,12.5,2.6,1.1,2.0,2.2,2.6,25.9,davisan02
|
||||
18,Lauri Markkanen,PF,25,UTA,66,66,34.4,8.7,17.3,.499,3.0,7.7,.391,5.6,9.6,.585,.586,5.3,6.0,.875,2.0,6.7,8.6,1.9,0.6,0.6,1.9,2.1,25.6,markkla01
|
||||
19,Julius Randle,PF,28,NYK,77,77,35.5,8.5,18.6,.459,2.8,8.3,.343,5.7,10.3,.553,.536,5.2,6.9,.757,1.8,8.1,10.0,4.1,0.6,0.3,2.8,3.0,25.1,randlju01
|
||||
20,De'Aaron Fox,PG,25,SAC,73,73,33.4,9.3,18.2,.512,1.6,5.0,.324,7.7,13.2,.584,.557,4.7,6.0,.780,0.5,3.6,4.2,6.1,1.1,0.3,2.5,2.4,25.0,foxde01
|
||||
21,Zach LaVine,SG,27,CHI,77,77,35.9,8.7,18.0,.485,2.6,7.1,.375,6.1,11.0,.556,.558,4.7,5.6,.848,0.5,3.9,4.5,4.2,0.9,0.2,2.5,2.1,24.8,lavinza01
|
||||
22,Brandon Ingram,SF,25,NOP,45,45,34.2,9.0,18.6,.484,1.4,3.6,.390,7.6,14.9,.507,.522,5.3,6.0,.882,0.5,5.0,5.5,5.8,0.7,0.4,3.3,2.6,24.7,ingrabr01
|
||||
23,Anthony Edwards,SG,21,MIN,79,79,36.0,8.9,19.5,.459,2.7,7.3,.369,6.3,12.2,.513,.528,4.0,5.3,.756,0.6,5.2,5.8,4.4,1.6,0.7,3.3,2.4,24.6,edwaran01
|
||||
24,DeMar DeRozan,SF,33,CHI,74,74,36.2,8.9,17.6,.504,0.6,1.9,.324,8.3,15.7,.526,.522,6.2,7.1,.872,0.5,4.2,4.6,5.1,1.1,0.5,2.1,2.5,24.5,derozde01
|
||||
25,Nikola Jokić,C,27,DEN,69,69,33.7,9.4,14.8,.632,0.8,2.2,.383,8.5,12.7,.675,.660,4.9,6.0,.822,2.4,9.4,11.8,9.8,1.3,0.7,3.6,2.5,24.5,jokicni01
|
||||
26,Pascal Siakam,PF,28,TOR,71,71,37.4,8.9,18.5,.480,1.3,4.0,.324,7.6,14.5,.523,.515,5.2,6.7,.774,1.8,6.0,7.8,5.8,0.9,0.5,2.4,3.2,24.2,siakapa01
|
||||
27,Jalen Brunson,PG,26,NYK,68,68,35.0,8.6,17.6,.491,2.0,4.7,.416,6.7,12.8,.519,.547,4.8,5.8,.829,0.6,3.0,3.5,6.2,0.9,0.2,2.1,2.2,24.0,brunsja01
|
||||
28,Paul George,SF,32,LAC,56,56,34.6,8.2,17.9,.457,2.8,7.6,.371,5.4,10.3,.521,.536,4.6,5.3,.871,0.8,5.3,6.1,5.1,1.5,0.4,3.1,2.8,23.8,georgpa01
|
||||
29,Kawhi Leonard,SF,31,LAC,52,50,33.6,8.6,16.8,.512,2.0,4.8,.416,6.6,11.9,.551,.572,4.7,5.4,.871,1.1,5.4,6.5,3.9,1.4,0.5,1.7,1.6,23.8,leonaka01
|
||||
30,LaMelo Ball,PG,21,CHO,36,36,35.2,8.2,20.0,.411,4.0,10.6,.376,4.2,9.4,.450,.510,2.8,3.4,.836,1.2,5.3,6.4,8.4,1.3,0.3,3.6,3.3,23.3,ballla01
|
||||
31,Kristaps Porziņģis,C,27,WAS,65,65,32.6,7.8,15.7,.498,2.1,5.5,.385,5.7,10.2,.559,.565,5.4,6.4,.851,1.8,6.6,8.4,2.7,0.9,1.5,2.1,3.0,23.2,porzikr01
|
||||
32,Bradley Beal,SG,29,WAS,50,50,33.5,8.9,17.6,.506,1.6,4.4,.365,7.3,13.2,.552,.551,3.8,4.6,.842,0.8,3.1,3.9,5.4,0.9,0.7,2.9,2.1,23.2,bealbr01
|
||||
33,Jimmy Butler,PF,33,MIA,64,64,33.4,7.5,13.9,.539,0.6,1.6,.350,6.9,12.3,.564,.560,7.4,8.7,.850,2.2,3.7,5.9,5.3,1.8,0.3,1.6,1.3,22.9,butleji01
|
||||
34,Jalen Green,SG,20,HOU,76,76,34.2,7.4,17.9,.416,2.5,7.3,.338,5.0,10.6,.471,.485,4.8,6.1,.786,0.6,3.2,3.7,3.7,0.8,0.2,2.6,1.7,22.1,greenja05
|
||||
35,Keldon Johnson,SF,23,SAS,63,63,32.7,8.0,17.7,.452,2.1,6.5,.329,5.9,11.2,.523,.512,3.9,5.2,.749,0.9,4.2,5.0,2.9,0.7,0.2,2.1,2.0,22.0,johnske04
|
||||
36,Klay Thompson,SF,32,GSW,69,69,33.0,7.9,18.1,.436,4.4,10.6,.412,3.6,7.6,.470,.556,1.7,1.9,.879,0.6,3.6,4.1,2.4,0.7,0.4,1.8,1.9,21.9,thompkl01
|
||||
37,Bojan Bogdanović,PF,33,DET,59,59,32.1,7.3,14.9,.488,2.5,6.0,.411,4.8,9.0,.539,.570,4.5,5.1,.884,0.6,3.2,3.8,2.6,0.6,0.1,2.3,1.9,21.6,bogdabo02
|
||||
38,Darius Garland,PG,23,CLE,69,69,35.5,7.6,16.4,.462,2.4,6.0,.410,5.1,10.4,.492,.537,4.0,4.7,.863,0.4,2.3,2.7,7.8,1.2,0.1,2.9,2.1,21.6,garlada01
|
||||
39,Desmond Bane,SG,24,MEM,58,58,31.7,7.8,16.2,.479,2.9,7.0,.408,4.9,9.2,.534,.568,3.1,3.5,.883,0.7,4.3,5.0,4.4,1.0,0.4,2.2,2.6,21.5,banede01
|
||||
40,Kyle Kuzma,PF,27,WAS,64,64,35.0,8.0,17.8,.448,2.5,7.5,.333,5.5,10.3,.533,.518,2.7,3.7,.730,0.9,6.4,7.2,3.7,0.6,0.5,3.0,2.3,21.2,kuzmaky01
|
||||
41,Terry Rozier,SG,28,CHO,63,63,35.3,7.8,18.9,.415,2.6,8.0,.327,5.2,10.8,.480,.484,2.8,3.5,.809,0.8,3.3,4.1,5.1,1.2,0.3,2.1,1.9,21.1,roziete01
|
||||
42,Anfernee Simons,SG,23,POR,62,62,35.0,7.5,16.9,.447,3.4,9.1,.377,4.1,7.8,.528,.548,2.6,2.9,.894,0.3,2.3,2.6,4.1,0.7,0.2,2.1,2.3,21.1,simonan01
|
||||
43,James Harden,PG,33,PHI,58,58,36.8,6.4,14.5,.441,2.8,7.2,.385,3.6,7.3,.495,.536,5.4,6.2,.867,0.7,5.4,6.1,10.7,1.2,0.5,3.4,1.9,21.0,hardeja01
|
||||
44,CJ McCollum,SG,31,NOP,75,75,35.3,7.8,17.9,.437,2.8,7.2,.389,5.0,10.7,.469,.515,2.4,3.2,.769,0.7,3.6,4.4,5.7,0.9,0.5,2.4,2.0,20.9,mccolcj01
|
||||
45,Jordan Clarkson,SG,30,UTA,61,61,32.6,7.5,16.9,.444,2.5,7.5,.338,5.0,9.4,.530,.519,3.3,4.0,.816,1.2,2.9,4.0,4.4,0.5,0.2,3.0,2.0,20.8,clarkjo01
|
||||
46,Karl-Anthony Towns,PF,27,MIN,29,29,33.0,7.3,14.8,.495,2.1,5.7,.366,5.2,9.1,.576,.565,4.1,4.7,.874,1.7,6.5,8.1,4.8,0.7,0.6,3.0,3.8,20.8,townska01
|
||||
47,Tyrese Haliburton,PG,22,IND,56,56,33.6,7.4,15.0,.490,2.9,7.2,.400,4.5,7.8,.572,.586,3.1,3.6,.871,0.6,3.1,3.7,10.4,1.6,0.4,2.5,1.2,20.7,halibty01
|
||||
48,Jerami Grant,PF,28,POR,63,63,35.7,6.9,14.5,.475,2.3,5.7,.401,4.6,8.8,.523,.554,4.4,5.4,.813,0.8,3.7,4.5,2.4,0.8,0.8,1.8,2.4,20.5,grantje01
|
||||
49,Dejounte Murray,SG,26,ATL,74,74,36.4,8.3,17.8,.464,1.8,5.2,.344,6.5,12.6,.514,.514,2.1,2.6,.832,0.7,4.5,5.3,6.1,1.5,0.3,2.2,1.4,20.5,murrade01
|
||||
50,Bam Adebayo,C,25,MIA,75,75,34.6,8.0,14.9,.540,0.0,0.2,.083,8.0,14.7,.545,.541,4.3,5.4,.806,2.5,6.7,9.2,3.2,1.2,0.8,2.5,2.8,20.4,adebaba01
|
||||
|
@@ -0,0 +1,570 @@
|
||||
"code" "name"
|
||||
"0" "N/A (not applicable)"
|
||||
"10" "Chief executives"
|
||||
"20" "General and operations managers"
|
||||
"30" "Legislators"
|
||||
"40" "Advertising and promotions managers"
|
||||
"50" "Marketing and sales managers"
|
||||
"60" "Public relations managers"
|
||||
"100" "Administrative services managers"
|
||||
"110" "Computer and information systems managers"
|
||||
"120" "Financial managers"
|
||||
"135" "Compensation and Benefits Managers"
|
||||
"136" "Human Resources Managers"
|
||||
"137" "Training and Development Managers"
|
||||
"140" "Industrial production managers"
|
||||
"150" "Purchasing managers"
|
||||
"160" "Transportation, storage, and distribution managers"
|
||||
"205" "Farmers, Ranchers, and Other Agricultural Managers"
|
||||
"220" "Construction managers"
|
||||
"230" "Education administrators"
|
||||
"300" "Engineering managers"
|
||||
"310" "Food service managers"
|
||||
"325" "Funeral service managers"
|
||||
"330" "Gaming managers"
|
||||
"340" "Lodging managers"
|
||||
"350" "Medical and health services managers"
|
||||
"360" "Natural sciences managers"
|
||||
"400" "Postmasters and mail superintendents"
|
||||
"410" "Property, real estate, and community association managers"
|
||||
"420" "Social and community service managers"
|
||||
"425" "Emergency Management Directors"
|
||||
"430" "Managers, all other"
|
||||
"500" "Agents and business managers of artists, performers, and athletes"
|
||||
"510" "Purchasing agents and buyers, farm products"
|
||||
"520" "Wholesale and retail buyers, except farm products"
|
||||
"530" "Purchasing agents, except wholesale, retail, and farm products"
|
||||
"540" "Claims adjusters, appraisers, examiners, and investigators"
|
||||
"550" "Not used"
|
||||
"565" "Compliance officers"
|
||||
"600" "Cost estimators"
|
||||
"610" "Not used"
|
||||
"630" "Human resource workers"
|
||||
"640" "Compensation, benefits, and job analysis specialists"
|
||||
"650" "Training and development specialists"
|
||||
"700" "Logisticians"
|
||||
"710" "Management analysts"
|
||||
"725" "Meeting, convention, and event planners"
|
||||
"726" "Fundraisers"
|
||||
"735" "Market research analysts and marketing specialists"
|
||||
"740" "Business operations specialists, all other"
|
||||
"800" "Accountants and auditors"
|
||||
"810" "Appraisers and assessors of real estate"
|
||||
"820" "Budget analysts"
|
||||
"830" "Credit analysts"
|
||||
"840" "Financial analysts"
|
||||
"850" "Personal financial advisors"
|
||||
"860" "Insurance underwriters"
|
||||
"900" "Financial examiners"
|
||||
"910" "Loan counselors and officers"
|
||||
"920" "Not used"
|
||||
"930" "Tax examiners, collectors, and revenue agents"
|
||||
"940" "Tax preparers"
|
||||
"950" "Financial specialists, all other"
|
||||
"1000" "Computer scientists and systems analysts"
|
||||
"1005" "Computer and information research scientists"
|
||||
"1006" "Computer systems analysts"
|
||||
"1007" "Information security analysts"
|
||||
"1010" "Computer programmers"
|
||||
"1020" "Software developers, applications and systems software"
|
||||
"1030" "Web developers"
|
||||
"1050" "Computer support specialists"
|
||||
"1060" "Database administrators"
|
||||
"1105" "Network and computer systems administrators"
|
||||
"1106" "Computer network architects"
|
||||
"1107" "Computer occupations, all other"
|
||||
"1200" "Actuaries"
|
||||
"1210" "Mathematicians"
|
||||
"1220" "Operations research analysts"
|
||||
"1230" "Statisticians"
|
||||
"1240" "Miscellaneous mathematical science occupations"
|
||||
"1300" "Architects, except naval"
|
||||
"1310" "Surveyors, cartographers, and photogrammetrists"
|
||||
"1320" "Aerospace engineers"
|
||||
"1330" "Agricultural engineers"
|
||||
"1340" "Biomedical engineers"
|
||||
"1350" "Chemical engineers"
|
||||
"1360" "Civil engineers"
|
||||
"1400" "Computer hardware engineers"
|
||||
"1410" "Electrical and electronics engineers"
|
||||
"1420" "Environmental engineers"
|
||||
"1430" "Industrial engineers, including health and safety"
|
||||
"1440" "Marine engineers and naval architects"
|
||||
"1450" "Materials engineers"
|
||||
"1460" "Mechanical engineers"
|
||||
"1500" "Mining and geological engineers, including mining safety engineers"
|
||||
"1510" "Nuclear engineers"
|
||||
"1520" "Petroleum engineers"
|
||||
"1530" "Engineers, all other"
|
||||
"1540" "Drafters"
|
||||
"1550" "Engineering technicians, except drafters"
|
||||
"1560" "Surveying and mapping technicians"
|
||||
"1600" "Agricultural and food scientists"
|
||||
"1610" "Biological scientists"
|
||||
"1640" "Conservation scientists and foresters"
|
||||
"1650" "Medical scientists"
|
||||
"1660" "Life scientists, all other"
|
||||
"1700" "Astronomers and physicists"
|
||||
"1710" "Atmospheric and space scientists"
|
||||
"1720" "Chemists and materials scientists"
|
||||
"1730" "Not used"
|
||||
"1740" "Environmental scientists and geoscientists"
|
||||
"1750" "Not used"
|
||||
"1760" "Physical scientists, all other"
|
||||
"1800" "Economists"
|
||||
"1815" "Survey researchers"
|
||||
"1820" "Psychologists"
|
||||
"1830" "Sociologists"
|
||||
"1840" "Urban and regional planners"
|
||||
"1850" "Not used"
|
||||
"1860" "Miscellaneous social scientists and related workers"
|
||||
"1900" "Agricultural and food science technicians"
|
||||
"1910" "Biological technicians"
|
||||
"1920" "Chemical technicians"
|
||||
"1930" "Geological and petroleum technicians"
|
||||
"1940" "Nuclear technicians"
|
||||
"1950" "Social science research assistants"
|
||||
"1965" "Miscellaneous life, physical, and social science technicians"
|
||||
"2000" "Counselors"
|
||||
"2010" "Social workers"
|
||||
"2015" "Probation officers and correctional treatment specialists"
|
||||
"2016" "Social and human service assistants"
|
||||
"2025" "Miscellaneous community and social service specialists, including health educators and community health workers"
|
||||
"2030" "Not used"
|
||||
"2040" "Clergy"
|
||||
"2050" "Directors, religious activities and education"
|
||||
"2060" "Religious workers, all other"
|
||||
"2100" "Lawyers, Judges, magistrates, and other judicial workers"
|
||||
"2105" "Judicial law clerks"
|
||||
"2110" "Judges, magistrates, and other judicial workers"
|
||||
"2145" "Paralegals and legal assistants"
|
||||
"2160" "Miscellaneous legal support workers"
|
||||
"2200" "Postsecondary teachers"
|
||||
"2300" "Preschool and kindergarten teachers"
|
||||
"2310" "Elementary and middle school teachers"
|
||||
"2320" "Secondary school teachers"
|
||||
"2330" "Special education teachers"
|
||||
"2340" "Other teachers and instructors"
|
||||
"2400" "Archivists, curators, and museum technicians"
|
||||
"2430" "Librarians"
|
||||
"2440" "Library technicians"
|
||||
"2540" "Teacher assistants"
|
||||
"2550" "Other education, training, and library workers"
|
||||
"2600" "Artists and related workers"
|
||||
"2630" "Designers"
|
||||
"2700" "Actors"
|
||||
"2710" "Producers and directors"
|
||||
"2720" "Athletes, coaches, umpires, and related workers"
|
||||
"2730" "Not used"
|
||||
"2740" "Dancers and choreographers"
|
||||
"2750" "Musicians, singers, and related workers"
|
||||
"2760" "Entertainers and performers, sports and related workers, all other"
|
||||
"2800" "Announcers"
|
||||
"2810" "News analysts, reporters, and correspondents"
|
||||
"2825" "Public relations specialists"
|
||||
"2830" "Editors"
|
||||
"2840" "Technical writers"
|
||||
"2850" "Writers and authors"
|
||||
"2860" "Miscellaneous media and communications workers"
|
||||
"2900" "Broadcast and sound engineering technicians and radio operators"
|
||||
"2910" "Photographers"
|
||||
"2920" "Television, video, and motion picture camera operators and editors"
|
||||
"2960" "Media and communications workers, all other"
|
||||
"3000" "Chiropractors"
|
||||
"3010" "Dentists"
|
||||
"3020" "Not used"
|
||||
"3030" "Dietitians and nutritionists"
|
||||
"3040" "Optometrists"
|
||||
"3050" "Pharmacists"
|
||||
"3060" "Physicians and surgeons"
|
||||
"3110" "Physician assistants"
|
||||
"3120" "Podiatrists"
|
||||
"3140" "Audiologists"
|
||||
"3150" "Occupational therapists"
|
||||
"3160" "Physical therapists"
|
||||
"3200" "Radiation therapists"
|
||||
"3210" "Recreational therapists"
|
||||
"3220" "Respiratory therapists"
|
||||
"3230" "Speech-language pathologists"
|
||||
"3235" "Exercise Physiologists"
|
||||
"3245" "Therapists, all other"
|
||||
"3250" "Veterinarians"
|
||||
"3255" "Registered nurses"
|
||||
"3256" "Nurse anesthetists"
|
||||
"3257" "Nurse midwives"
|
||||
"3258" "Nurse practitioners"
|
||||
"3260" "Health diagnosing and treating practitioners, all other"
|
||||
"3300" "Clinical laboratory technologists and technicians"
|
||||
"3310" "Dental hygienists"
|
||||
"3320" "Diagnostic related technologists and technicians"
|
||||
"3400" "Emergency medical technicians and paramedics"
|
||||
"3420" "Health practitioner support technologists and technicians "
|
||||
"3500" "Licensed practical and licensed vocational nurses"
|
||||
"3510" "Medical records and health information technicians"
|
||||
"3520" "Opticians, dispensing"
|
||||
"3535" "Miscellaneous health technologists and technicians"
|
||||
"3540" "Other healthcare practitioners and technical occupations"
|
||||
"3600" "Nursing, psychiatric, and home health aides"
|
||||
"3610" "Occupational therapist assistants and aides"
|
||||
"3620" "Physical therapist assistants and aides"
|
||||
"3630" "Massage therapists"
|
||||
"3640" "Dental assistants"
|
||||
"3645" "Medical assistants"
|
||||
"3646" "Medical transcriptionists"
|
||||
"3647" "Pharmacy aides"
|
||||
"3648" "Veterinary assistants and labratory animal caretakers"
|
||||
"3649" "Phlebotmists"
|
||||
"3655" "Miscellaneous healthcare support occupations, including medical equipment preparers"
|
||||
"3700" "First-line supervisors/managers of correctional officers"
|
||||
"3710" "First-line supervisors/managers of police and detectives"
|
||||
"3720" "First-line supervisors/managers of fire fighting and preventions workers"
|
||||
"3730" "Supervisors, protective service workers, all other"
|
||||
"3740" "Fire fighters"
|
||||
"3750" "Fire inspectors"
|
||||
"3800" "Bailiffs, correctional officers, and jailers"
|
||||
"3810" "Not used"
|
||||
"3820" "Detectives and criminal investigators"
|
||||
"3830" "Fish and game wardens"
|
||||
"3840" "Parking enforcement workers"
|
||||
"3850" "Police and sheriff's patrol officers"
|
||||
"3860" "Transit and railroad police"
|
||||
"3900" "Animal control workers"
|
||||
"3910" "Private detectives and investigators"
|
||||
"3930" "Security guards and gaming surveillance officers"
|
||||
"3940" "Crossing guards"
|
||||
"3945" "Transportation security screeners"
|
||||
"3955" "Lifeguards and other recreational, and all other protective service workers"
|
||||
"4000" "Chefs and head cooks"
|
||||
"4010" "First-line supervisors/managers of food preparation and serving workers"
|
||||
"4020" "Cooks"
|
||||
"4030" "Food preparation workers"
|
||||
"4040" "Bartenders"
|
||||
"4050" "Combined food preparation and serving workers, including fast food"
|
||||
"4060" "Counter attendants, cafeteria, food concession, and coffee shop"
|
||||
"4110" "Waiters and waitresses"
|
||||
"4120" "Food servers, nonrestaurant"
|
||||
"4130" "Dining room, cafeteria attendants, and misc. food preparation workers"
|
||||
"4140" "Dishwashers"
|
||||
"4150" "Hosts and hostesses, restaurant, lounge, and coffee shop"
|
||||
"4160" "Food preparation and serving related workers, all other"
|
||||
"4200" "First-line supervisors/managers of housekeeping and janitorial workers"
|
||||
"4210" "First-line supervisors/managers of landscaping workers"
|
||||
"4220" "Janitors and building cleaners"
|
||||
"4230" "Maids and housekeeping cleaners"
|
||||
"4240" "Pest control workers"
|
||||
"4250" "Grounds maintenance workers"
|
||||
"4300" "First-line supervisors/managers of gaming workers"
|
||||
"4310" "Not used"
|
||||
"4320" "First-line supervisors/managers of personal service workers"
|
||||
"4330" "Not used"
|
||||
"4340" "Animal trainers"
|
||||
"4350" "Nonfarm animal caretakers"
|
||||
"4400" "Gaming services workers"
|
||||
"4410" "Motion picture projectionists"
|
||||
"4420" "Ushers, lobby attendants, and ticket takers"
|
||||
"4430" "Miscellaneous entertainment attendants and related workers"
|
||||
"4460" "Funeral service workers "
|
||||
"4465" "Morticians, undertakers, and funeral directors (2011 forward)"
|
||||
"4500" "Barbers"
|
||||
"4510" "Hairdressers, hairstylists, and cosmetologists"
|
||||
"4520" "Miscellaneous personal appearance workers"
|
||||
"4530" "Baggage porters, bellhops, and concierges"
|
||||
"4540" "Tour and travel guides"
|
||||
"4550" "Transportation attendants"
|
||||
"4600" "Child care workers"
|
||||
"4610" "Personal and home care aides"
|
||||
"4620" "Recreation and fitness workers"
|
||||
"4630" "Not used"
|
||||
"4640" "Residential advisors"
|
||||
"4650" "Personal care and service workers, all other"
|
||||
"4700" "First-line supervisors/managers of retail sales workers"
|
||||
"4710" "First-line supervisors/managers of non-retail sales workers"
|
||||
"4720" "Cashiers"
|
||||
"4730" "Not used"
|
||||
"4740" "Counter and rental clerks"
|
||||
"4750" "Parts salespersons"
|
||||
"4760" "Retail salespersons"
|
||||
"4800" "Advertising sales agents"
|
||||
"4810" "Insurance sales agents"
|
||||
"4820" "Securities, commodities, and financial services sales agents"
|
||||
"4830" "Travel agents"
|
||||
"4840" "Sales representatives, services, all other"
|
||||
"4850" "Sales representatives, wholesale and manufacturing"
|
||||
"4900" "Models, demonstrators, and product promoters"
|
||||
"4910" "Not used"
|
||||
"4920" "Real estate brokers and sales agents"
|
||||
"4930" "Sales engineers"
|
||||
"4940" "Telemarketers"
|
||||
"4950" "Door-to-door sales workers, news and street vendors, and related workers"
|
||||
"4965" "Sales and related workers, all other"
|
||||
"5000" "First-line supervisors/managers of office and administrative support workers"
|
||||
"5010" "Switchboard operators, including answering service"
|
||||
"5020" "Telephone operators"
|
||||
"5030" "Communications equipment operators, all other"
|
||||
"5100" "Bill and account collectors"
|
||||
"5110" "Billing and posting clerks and machine operators"
|
||||
"5120" "Bookkeeping, accounting, and auditing clerks"
|
||||
"5130" "Gaming cage workers"
|
||||
"5140" "Payroll and timekeeping clerks"
|
||||
"5150" "Procurement clerks"
|
||||
"5160" "Tellers"
|
||||
"5165" "Financial clerks, all other"
|
||||
"5200" "Brokerage clerks"
|
||||
"5210" "Correspondence clerks"
|
||||
"5220" "Court, municipal, and license clerks"
|
||||
"5230" "Credit authorizers, checkers, and clerks"
|
||||
"5240" "Customer service representatives"
|
||||
"5250" "Eligibility interviewers, government programs"
|
||||
"5260" "File clerks"
|
||||
"5300" "Hotel, motel, and resort desk clerks"
|
||||
"5310" "Interviewers, except eligibility and loan"
|
||||
"5320" "Library assistants, clerical"
|
||||
"5330" "Loan interviewers and clerks"
|
||||
"5340" "New accounts clerks"
|
||||
"5350" "Order clerks"
|
||||
"5360" "Human resources assistants, except payroll and timekeeping"
|
||||
"5400" "Receptionists and information clerks"
|
||||
"5410" "Reservation and transportation ticket agents and travel clerks"
|
||||
"5420" "Information and record clerks, all other"
|
||||
"5500" "Cargo and freight agents"
|
||||
"5510" "Couriers and messengers"
|
||||
"5520" "Dispatchers"
|
||||
"5530" "Meter readers, utilities"
|
||||
"5540" "Postal service clerks"
|
||||
"5550" "Postal service mail carriers"
|
||||
"5560" "Postal service mail sorters, processors, and processing machine operators"
|
||||
"5600" "Production, planning and expediting clerks"
|
||||
"5610" "Shipping, receiving, and traffic clerks"
|
||||
"5620" "Stock clerks and order fillers"
|
||||
"5630" "Weighers, measurers, checkers, and samplers, record keeping"
|
||||
"5700" "Secretaries and administrative assistants"
|
||||
"5800" "Computer operators"
|
||||
"5810" "Data entry keyers"
|
||||
"5820" "Word processors and typists"
|
||||
"5830" "Desktop publishers"
|
||||
"5840" "Insurance claims and policy processing clerks"
|
||||
"5850" "Mail clerks and mail machine operators, except postal service"
|
||||
"5860" "Office clerks, general"
|
||||
"5900" "Office machine operators, except computer"
|
||||
"5910" "Proofreaders and copy markers"
|
||||
"5920" "Statistical assistants"
|
||||
"5940" "Office and administrative support workers, all other"
|
||||
"6005" "First-line supervisors of farming, fishing, and forestry workers"
|
||||
"6010" "Agricultural inspectors"
|
||||
"6020" "Animal breeders"
|
||||
"6030" "Not used"
|
||||
"6040" "Graders and sorters, agricultural products"
|
||||
"6050" "Miscellaneous agricultural workers"
|
||||
"6100" "Fishers and related fishing workers"
|
||||
"6110" "Hunters and trappers"
|
||||
"6120" "Forest and conservation workers"
|
||||
"6130" "Logging workers"
|
||||
"6200" "First-line supervisors/managers of construction trades and extraction workers"
|
||||
"6210" "Boilermakers"
|
||||
"6220" "Brickmasons, blockmasons, and stonemasons"
|
||||
"6230" "Carpenters"
|
||||
"6240" "Carpet, floor, and tile installers and finishers"
|
||||
"6250" "Cement masons, concrete finishers, and terrazzo workers"
|
||||
"6260" "Construction laborers"
|
||||
"6300" "Paving, surfacing, and tamping equipment operators"
|
||||
"6310" "Pile-driver operators"
|
||||
"6320" "Operating engineers and other construction equipment operators"
|
||||
"6330" "Drywall installers, ceiling tile installers, and tapers"
|
||||
"6340" "Not used"
|
||||
"6355" "Electricians"
|
||||
"6360" "Glaziers"
|
||||
"6400" "Insulation workers"
|
||||
"6410" "Not used"
|
||||
"6420" "Painters, construction and maintenance"
|
||||
"6430" "Paperhangers"
|
||||
"6440" "Pipelayers, plumbers, pipefitters, and steamfitters"
|
||||
"6450" "Not used"
|
||||
"6460" "Plasterers and stucco masons"
|
||||
"6500" "Reinforcing iron and rebar workers"
|
||||
"6515" "Roofers"
|
||||
"6520" "Sheet metal workers"
|
||||
"6530" "Solar Photovoltaic Installers"
|
||||
"6540" "Structural iron and steel workers"
|
||||
"6600" "Helpers, construction trades"
|
||||
"6660" "Construction and building inspectors"
|
||||
"6700" "Elevator installers and repairers"
|
||||
"6710" "Fence erectors"
|
||||
"6720" "Hazardous materials removal workers"
|
||||
"6730" "Highway maintenance workers"
|
||||
"6740" "Rail-track laying and maintenance equipment operators"
|
||||
"6750" "Septic tank servicers and sewer pipe cleaners"
|
||||
"6765" "Miscellaneous construction and related workers"
|
||||
"6800" "Derrick, rotary drill, and service unit operators, oil, gas, and mining"
|
||||
"6810" "Not used"
|
||||
"6820" "Earth drillers, except oil and gas"
|
||||
"6830" "Explosives workers, ordnance handling experts, and blasters"
|
||||
"6840" "Mining machine operators"
|
||||
"6910" "Roof bolters, mining"
|
||||
"6920" "Roustabouts, oil and gas"
|
||||
"6930" "Helpers -- extraction workers"
|
||||
"6940" "Other extraction workers"
|
||||
"7000" "First-line supervisors/managers of mechanics, installers, and repairers"
|
||||
"7010" "Computer, automated teller, and office machine repairers"
|
||||
"7020" "Radio and telecommunications equipment installers and repairers"
|
||||
"7030" "Avionics technicians"
|
||||
"7040" "Electric motor, power tool, and related repairers"
|
||||
"7050" "Electrical and electronics installers and repairers, transportation equipment"
|
||||
"7100" "Electrical and electronics repairers, industrial and utility"
|
||||
"7110" "Electronic equipment installers and repairers, motor vehicles"
|
||||
"7120" "Electronic home entertainment equipment installers and repairers"
|
||||
"7130" "Security and fire alarm systems installers"
|
||||
"7140" "Aircraft mechanics and service technicians"
|
||||
"7150" "Automotive body and related repairers"
|
||||
"7160" "Automotive glass installers and repairers"
|
||||
"7200" "Automotive service technicians and mechanics"
|
||||
"7210" "Bus and truck mechanics and diesel engine specialists"
|
||||
"7220" "Heavy vehicle and mobile equipment service technicians and mechanics"
|
||||
"7230" "Not used"
|
||||
"7240" "Small engine mechanics"
|
||||
"7250" "Not used"
|
||||
"7260" "Miscellaneous vehicle and mobile equipment mechanics, installers, and repairers"
|
||||
"7300" "Control and valve installers and repairers"
|
||||
"7315" "Heating, air conditioning, and refrigeration mechanics and installers"
|
||||
"7320" "Home appliance repairers"
|
||||
"7330" "Industrial and refractory machinery mechanics"
|
||||
"7340" "Maintenance and repair workers, general"
|
||||
"7350" "Maintenance workers, machinery"
|
||||
"7360" "Millwrights"
|
||||
"7410" "Electrical power-line installers and repairers"
|
||||
"7420" "Telecommunications line installers and repairers"
|
||||
"7430" "Precision instrument and equipment repairers"
|
||||
"7440" "Wind turbine service technicians"
|
||||
"7510" "Coin, vending, and amusement machine servicers and repairers"
|
||||
"7520" "Commercial divers"
|
||||
"7530" "Not used"
|
||||
"7540" "Locksmiths and safe repairers"
|
||||
"7550" "Manufactured building and mobile home installers"
|
||||
"7560" "Riggers"
|
||||
"7600" "Signal and track switch repairers"
|
||||
"7610" "Helpers--installation, maintenance, and repair workers"
|
||||
"7630" "Other installation, maintenance, and repair workers"
|
||||
"7700" "First-line supervisors/managers of production and operating workers"
|
||||
"7710" "Aircraft structure, surfaces, rigging, and systems assemblers"
|
||||
"7720" "Electrical, electronics, and electromechanical assemblers"
|
||||
"7730" "Engine and other machine assemblers"
|
||||
"7740" "Structural metal fabricators and fitters"
|
||||
"7750" "Miscellaneous assemblers and fabricators"
|
||||
"7800" "Bakers"
|
||||
"7810" "Butchers and other meat, poultry, and fish processing workers"
|
||||
"7820" "Not used"
|
||||
"7830" "Food and tobacco roasting, baking, and drying machine operators and tenders"
|
||||
"7840" "Food batchmakers"
|
||||
"7850" "Food cooking machine operators and tenders"
|
||||
"7855" "Food processing workers, all other"
|
||||
"7900" "Computer control programmers and operators"
|
||||
"7910" "Not used"
|
||||
"7920" "Extruding and drawing machine setters, operators, and tenders, metal and plastic"
|
||||
"7930" "Forging machine setters, operators, and tenders, metal and plastic"
|
||||
"7940" "Rolling machine setters, operators, and tenders, metal and plastic"
|
||||
"7950" "Cutting, punching, and press machine setters, operators, and tenders, metal and plastic"
|
||||
"7960" "Drilling and boring machine tool setters, operators, and tenders, metal and plastic"
|
||||
"8000" "Grinding, lapping, polishing, and buffing machine tool setters, operators, and tenders, metal and plastic"
|
||||
"8010" "Lathe and turning machine tool setters, operators, and tenders, metal and plastic"
|
||||
"8020" "Milling and planing machine setters, operators, and tenders, metal and plastic"
|
||||
"8030" "Machinists"
|
||||
"8040" "Metal furnace and kiln operators and tenders"
|
||||
"8050" "Not used"
|
||||
"8060" "Model makers and patternmakers, metal and plastic"
|
||||
"8100" "Molders and molding machine setters, operators, and tenders, metal and plastic"
|
||||
"8110" "Not used"
|
||||
"8120" "Multiple machine tool setters, operators, and tenders, metal and plastic"
|
||||
"8130" "Tool and die makers"
|
||||
"8140" "Welding, soldering, and brazing workers"
|
||||
"8150" "Heat treating equipment setters, operators, and tenders, metal and plastic"
|
||||
"8160" "Lay-out workers, metal and plastic"
|
||||
"8200" "Plating and coating machine setters, operators, and tenders, metal and plastic"
|
||||
"8210" "Tool grinders, filers, and sharpeners"
|
||||
"8220" "Metalworkers and plastic workers,all others"
|
||||
"8250" "Prepress technicians and workers"
|
||||
"8255" "Printing machine operators"
|
||||
"8256" "Print binding and finishing workers"
|
||||
"8300" "Laundry and dry-cleaning workers"
|
||||
"8310" "Pressers, textile, garment, and related materials"
|
||||
"8320" "Sewing machine operators"
|
||||
"8330" "Shoe and leather workers and repairers"
|
||||
"8340" "Shoe machine operators and tenders"
|
||||
"8350" "Tailors, dressmakers, and sewers"
|
||||
"8360" "Textile bleaching and dyeing machine operators and tenders"
|
||||
"8400" "Textile cutting machine setters, operators, and tenders"
|
||||
"8410" "Textile knitting and weaving machine setters, operators, and tenders"
|
||||
"8420" "Textile winding, twisting, and drawing out machine setters, operators, and tenders"
|
||||
"8430" "Extruding and forming machine setters, operators, and tenders, synthetic and glass fibers"
|
||||
"8440" "Fabric and apparel patternmakers"
|
||||
"8450" "Upholsterers"
|
||||
"8460" "Textile, apparel, and furnishings workers, all others"
|
||||
"8500" "Cabinetmakers and bench carpenters"
|
||||
"8510" "Furniture finishers"
|
||||
"8520" "Model makers and patternmakers, wood"
|
||||
"8530" "Sawing machine setters, operators, and tenders, wood"
|
||||
"8540" "Woodworking machine setters, operators, and tenders, except sawing"
|
||||
"8550" "Woodworkers, all others"
|
||||
"8600" "Power plant operators, distributors, and dispatchers"
|
||||
"8610" "Stationary engineers and boiler operators"
|
||||
"8620" "Water and liquid waste treatment plant and system operators"
|
||||
"8630" "Miscellaneous plant and system operators"
|
||||
"8640" "Chemical processing machine setters, operators, and tenders"
|
||||
"8650" "Crushing, grinding, polishing, mixing, and blending workers"
|
||||
"8710" "Cutting workers"
|
||||
"8720" "Extruding, forming, pressing, and compacting machine setters, operators, and tenders"
|
||||
"8730" "Furnace, kiln, oven, drier, and kettle operators and tenders"
|
||||
"8740" "Inspectors, testers, sorters, samplers, and weighers"
|
||||
"8750" "Jewelers and precious stone and metal workers"
|
||||
"8760" "Medical, dental, and ophthalmic laboratory technicians"
|
||||
"8800" "Packaging and filling machine operators and tenders"
|
||||
"8810" "Painting workers"
|
||||
"8820" "Not used"
|
||||
"8830" "Photographic process workers and processing machine operators"
|
||||
"8840" "Semiconductor processors"
|
||||
"8850" "Cementing and gluing machine operators and tenders"
|
||||
"8860" "Cleaning, washing, and metal pickling equipment operators and tenders"
|
||||
"8900" "Cooling and freezing equipment operators and tenders"
|
||||
"8910" "Etchers and engravers"
|
||||
"8920" "Molders, shapers, and casters, except metal and plastic"
|
||||
"8930" "Paper goods machine setters, operators, and tenders"
|
||||
"8940" "Tire builders"
|
||||
"8950" "Helpers--production workers"
|
||||
"8965" "Production workers, all other"
|
||||
"9000" "Supervisors, transportation and material moving workers"
|
||||
"9030" "Aircraft pilots and flight engineers"
|
||||
"9040" "Air traffic controllers and airfield operations specialists"
|
||||
"9050" "Flight attendants"
|
||||
"9110" "Ambulance drivers and attendants, except emergency medical technicians"
|
||||
"9120" "Bus drivers"
|
||||
"9130" "Driver/sales workers and truck drivers"
|
||||
"9140" "Taxi drivers and chauffeurs"
|
||||
"9150" "Motor vehicle operators, all other"
|
||||
"9200" "Locomotive engineers and operators"
|
||||
"9230" "Railroad brake, signal, and switch operators"
|
||||
"9240" "Railroad conductors and yardmasters"
|
||||
"9250" "Not used"
|
||||
"9260" "Subway, streetcar, and other rail transportation workers"
|
||||
"9300" "Sailors and marine oilers"
|
||||
"9310" "Ship and boat captains and operators"
|
||||
"9320" "Not used"
|
||||
"9330" "Ship engineers"
|
||||
"9340" "Bridge and lock tenders"
|
||||
"9350" "Parking lot attendants"
|
||||
"9360" "Service station attendants"
|
||||
"9410" "Transportation inspectors"
|
||||
"9415" "Transportation attendants, except flight attendants"
|
||||
"9420" "Other transportation workers"
|
||||
"9500" "Conveyor operators and tenders"
|
||||
"9510" "Crane and tower operators"
|
||||
"9520" "Dredge, excavating, and loading machine operators"
|
||||
"9560" "Hoist and winch operators"
|
||||
"9600" "Industrial truck and tractor operators"
|
||||
"9610" "Cleaners of vehicles and equipment"
|
||||
"9620" "Laborers and freight, stock, and material movers, hand"
|
||||
"9630" "Machine feeders and offbearers"
|
||||
"9640" "Packers and packagers, hand"
|
||||
"9650" "Pumping station operators"
|
||||
"9720" "Refuse and recyclable material collectors"
|
||||
"9730" "Shuttle car operators"
|
||||
"9740" "Tank car, truck, and ship loaders"
|
||||
"9750" "Material moving workers, all other"
|
||||
"9840" "Armed forces"
|
||||
|
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,521 @@
|
||||
"id","grp","nwt"
|
||||
"530","Business Operations",3249.4
|
||||
"4720","Sales and Related",32032.3
|
||||
"4760","Sales and Related",29531.3
|
||||
"4700","Sales and Related",27463.5
|
||||
"430","Management",33320.7
|
||||
"4710","Sales and Related",9713.4
|
||||
"4220","Building and Grounds Cleaning and Maintenance",20360.4
|
||||
"4020","Food Preparation and Serving",18940.5
|
||||
"4230","Building and Grounds Cleaning and Maintenance",13073.6
|
||||
"9130","Transportation and Material Moving",28642.3
|
||||
"9620","Transportation and Material Moving",17218.6
|
||||
"5700","Office and Administrative Support",25750.9
|
||||
"310","Management",9200.1
|
||||
"4030","Food Preparation and Serving",8313.4
|
||||
"4010","Food Preparation and Serving",4952
|
||||
"20","Management",8041.3
|
||||
"4110","Food Preparation and Serving",19203.9
|
||||
"2310","Education, Training, and Library",27008.8
|
||||
"4250","Building and Grounds Cleaning and Maintenance",12301.9
|
||||
"10","Management",12449.8
|
||||
"5240","Office and Administrative Support",18948.3
|
||||
"4850","Sales and Related",10785.1
|
||||
"4610","Personal Care and Service",11144.6
|
||||
"2320","Education, Training, and Library",9598
|
||||
"4600","Personal Care and Service",11797.6
|
||||
"3600","Healthcare Support",17944.7
|
||||
"5860","Office and Administrative Support",10749.4
|
||||
"2340","Education, Training, and Library",7791.7
|
||||
"4000","Food Preparation and Serving",3515.2
|
||||
"5400","Office and Administrative Support",11378.5
|
||||
"3645","Healthcare Support",3868.9
|
||||
"2010","Community and Social Services",6455.6
|
||||
"3420","Healthcare Practitioners and Technicians",4821.3
|
||||
"2000","Community and Social Services",6475
|
||||
"5620","Office and Administrative Support",14086.5
|
||||
"6320","Construction",3297.8
|
||||
"205","Management",7331.7
|
||||
"4510","Personal Care and Service",6357.5
|
||||
"120","Management",10195.4
|
||||
"3255","Healthcare Practitioners and Technicians",24520.9
|
||||
"2300","Education, Training, and Library",6052.8
|
||||
"9640","Transportation and Material Moving",5039.9
|
||||
"50","Management",8098.4
|
||||
"230","Management",7283.6
|
||||
"4810","Sales and Related",5092.2
|
||||
"4920","Sales and Related",7038.5
|
||||
"5120","Office and Administrative Support",10748.2
|
||||
"6260","Construction",14730.5
|
||||
"410","Management",5415.9
|
||||
"220","Management",6818
|
||||
"4040","Food Preparation and Serving",3625.9
|
||||
"350","Management",4901.2
|
||||
"3655",NA,1392.3
|
||||
"9120","Transportation and Material Moving",4999.3
|
||||
"710","Business Operations",7044.1
|
||||
"110","Management",5328.8
|
||||
"1020","Computer and Mathematical",10129.6
|
||||
"4050","Food Preparation and Serving",3378
|
||||
"9600","Transportation and Material Moving",4966
|
||||
"4840","Sales and Related",3958.6
|
||||
"3640","Healthcare Support",2458
|
||||
"2630","Arts, Design, Entertainment, Sports, and Media",7155.8
|
||||
"5610","Office and Administrative Support",4996.7
|
||||
"3500","Healthcare Practitioners and Technicians",5085
|
||||
"4300","Personal Care and Service",1325.7
|
||||
"2160",NA,1642
|
||||
"2550","Education, Training, and Library",1546.4
|
||||
"6420","Construction",4952.5
|
||||
"2145","Legal",3457.2
|
||||
"2540","Education, Training, and Library",8392.3
|
||||
"3060","Healthcare Practitioners and Technicians",7573.6
|
||||
"6440","Construction",5117.7
|
||||
"420","Management",3193.6
|
||||
"7200","Installation, Maintenance, and Repair",7290.3
|
||||
"9140","Transportation and Material Moving",3630
|
||||
"4200","Building and Grounds Cleaning and Maintenance",2445.7
|
||||
"2040","Community and Social Services",3602.3
|
||||
"3930","Protective Service",8288.2
|
||||
"4320","Personal Care and Service",1588.9
|
||||
"4620","Personal Care and Service",4094.6
|
||||
"4210","Building and Grounds Cleaning and Maintenance",1819.6
|
||||
"2720","Arts, Design, Entertainment, Sports, and Media",3010.2
|
||||
"2600","Arts, Design, Entertainment, Sports, and Media",1676.9
|
||||
"3050","Healthcare Practitioners and Technicians",2358.6
|
||||
"4130","Food Preparation and Serving",3270.9
|
||||
"4140","Food Preparation and Serving",2639.2
|
||||
"4800","Sales and Related",2046.9
|
||||
"5550","Office and Administrative Support",2781.5
|
||||
"8140","Production",5152.8
|
||||
"5940","Office and Administrative Support",4557.6
|
||||
"6330","Construction",1330.6
|
||||
"3820","Protective Service",1339.6
|
||||
"8740","Production",6374.1
|
||||
"8965","Production",7954.9
|
||||
"1050","Computer and Mathematical",4327.2
|
||||
"3630","Healthcare Support",1467.3
|
||||
"7750","Production",8789.7
|
||||
"6040","Farming, Fishing, and Forestry",1109.7
|
||||
"5160","Office and Administrative Support",3023.8
|
||||
"4150","Food Preparation and Serving",2631.9
|
||||
"4060","Food Preparation and Serving",2374.7
|
||||
"140","Management",2236.8
|
||||
"3010","Healthcare Practitioners and Technicians",1416.3
|
||||
"6240","Construction",1351.1
|
||||
"3150","Healthcare Practitioners and Technicians",1030.5
|
||||
"1550","Technicians",3143.6
|
||||
"4965","Sales and Related",2138.6
|
||||
"850","Financial Specialists",3780.8
|
||||
"1540","Architecture and Engineering",1117.5
|
||||
"910","Financial Specialists",2857.5
|
||||
"2430","Education, Training, and Library",1586.9
|
||||
"3800","Protective Service",3359.1
|
||||
"630","Business Operations",5179.6
|
||||
"2330","Education, Training, and Library",2946.8
|
||||
"1006","Computer and Mathematical",4280.2
|
||||
"840","Financial Specialists",1634.1
|
||||
"4520","Personal Care and Service",2435.5
|
||||
"3160","Healthcare Practitioners and Technicians",1969.3
|
||||
"3910","Protective Service",737.8
|
||||
"1530","Architecture and Engineering",3418.6
|
||||
"5510","Office and Administrative Support",1923.4
|
||||
"800","Financial Specialists",14715.4
|
||||
"5110","Office and Administrative Support",3934
|
||||
"2830","Arts, Design, Entertainment, Sports, and Media",1529
|
||||
"3245","Healthcare Practitioners and Technicians",1428.5
|
||||
"160","Management",2154.1
|
||||
"9000","Transportation and Material Moving",1639.7
|
||||
"1010","Computer and Mathematical",3690.6
|
||||
"3300","Healthcare Practitioners and Technicians",2980.9
|
||||
"9610","Transportation and Material Moving",3007
|
||||
"5540","Office and Administrative Support",1025.8
|
||||
"7340","Installation, Maintenance, and Repair",4101.2
|
||||
"5810","Office and Administrative Support",2809.2
|
||||
"2016","Community and Social Services",1499.9
|
||||
"4120","Food Preparation and Serving",1768.2
|
||||
"5520","Office and Administrative Support",2280.5
|
||||
"3710","Protective Service",950.8
|
||||
"8220","Production",3348.8
|
||||
"7420","Installation, Maintenance, and Repair",1669
|
||||
"5260","Office and Administrative Support",2305.7
|
||||
"7810","Production",2685.6
|
||||
"3700","Protective Service",412.5
|
||||
"3320","Healthcare Practitioners and Technicians",2646.4
|
||||
"5600","Office and Administrative Support",2145.1
|
||||
"7210","Installation, Maintenance, and Repair",2717.9
|
||||
"7800","Production",1931.6
|
||||
"1107","Computer and Mathematical",3637.7
|
||||
"7720","Production",1358.5
|
||||
"1410","Architecture and Engineering",2566.5
|
||||
"7330","Installation, Maintenance, and Repair",3579.5
|
||||
"6050","Farming, Fishing, and Forestry",7606.1
|
||||
"5300","Office and Administrative Support",1098.8
|
||||
"340","Management",1179.3
|
||||
"8950","Production",350.4
|
||||
"100","Management",1287.4
|
||||
"9150","Transportation and Material Moving",613.4
|
||||
"5100","Office and Administrative Support",1490.5
|
||||
"6940","Extraction",664.9
|
||||
"1360","Architecture and Engineering",2969.5
|
||||
"1460","Architecture and Engineering",2555.7
|
||||
"1560","Technicians",597
|
||||
"3730","Protective Service",743.5
|
||||
"5000","Office and Administrative Support",11775.6
|
||||
"6250","Construction",547.4
|
||||
"1030","Computer and Mathematical",1682.3
|
||||
"540","Business Operations",2732.2
|
||||
"6230","Construction",11326.7
|
||||
"300","Management",916
|
||||
"2050","Community and Social Services",569
|
||||
"740",NA,2138.5
|
||||
"9840",NA,6353.6
|
||||
"3400","Healthcare Practitioners and Technicians",1695.4
|
||||
"1105","Computer and Mathematical",1854.6
|
||||
"2825","Arts, Design, Entertainment, Sports, and Media",1237.8
|
||||
"735",NA,2133.8
|
||||
"2025","Community and Social Services",865.8
|
||||
"2850","Arts, Design, Entertainment, Sports, and Media",1930
|
||||
"6130","Farming, Fishing, and Forestry",633.8
|
||||
"8030","Production",3262.8
|
||||
"1965","Life, Physical, and Social Science",1383.5
|
||||
"3649","Healthcare Support",875.9
|
||||
"1860","Life, Physical, and Social Science",537.8
|
||||
"5360","Office and Administrative Support",714.1
|
||||
"4740","Sales and Related",1018.5
|
||||
"8800","Production",2236.2
|
||||
"1920","Life, Physical, and Social Science",575
|
||||
"4820","Sales and Related",2275.4
|
||||
"4430","Personal Care and Service",1903.7
|
||||
"4350","Personal Care and Service",1654.3
|
||||
"4950","Sales and Related",1567.9
|
||||
"2750","Arts, Design, Entertainment, Sports, and Media",1641.9
|
||||
"3647","Healthcare Support",444.4
|
||||
"136","Management",2048.1
|
||||
"6800","Extraction",428.6
|
||||
"565","Business Operations",1792.6
|
||||
"5840","Office and Administrative Support",2291.6
|
||||
"810","Financial Specialists",659.2
|
||||
"4940","Sales and Related",794.5
|
||||
"6515","Construction",1953.9
|
||||
"950","Financial Specialists",632.9
|
||||
"4400","Personal Care and Service",865.6
|
||||
"2810","Arts, Design, Entertainment, Sports, and Media",695
|
||||
"2200","Education, Training, and Library",11838.2
|
||||
"5560","Office and Administrative Support",571.3
|
||||
"5140","Office and Administrative Support",1215.9
|
||||
"9350","Transportation and Material Moving",707.4
|
||||
"2400","Education, Training, and Library",468.8
|
||||
"3955",NA,1850.6
|
||||
"2710","Arts, Design, Entertainment, Sports, and Media",1349
|
||||
"7220","Installation, Maintenance, and Repair",1709.6
|
||||
"1650","Life, Physical, and Social Science",1275.4
|
||||
"725","Business Operations",1228.3
|
||||
"8320","Production",1670.9
|
||||
"3510","Healthcare Practitioners and Technicians",1110.7
|
||||
"3220","Healthcare Practitioners and Technicians",773.9
|
||||
"7315","Installation, Maintenance, and Repair",3203.5
|
||||
"9420","Transportation and Material Moving",261.5
|
||||
"5310","Office and Administrative Support",1593.8
|
||||
"3310","Healthcare Practitioners and Technicians",1459.7
|
||||
"3535","Healthcare Practitioners and Technicians",956.2
|
||||
"9050","Transportation and Material Moving",713.4
|
||||
"8640","Production",469.3
|
||||
"3540","Healthcare Practitioners and Technicians",817.8
|
||||
"1760","Life, Physical, and Social Science",1723
|
||||
"3230","Healthcare Practitioners and Technicians",1206.3
|
||||
"4750","Sales and Related",850
|
||||
"6460","Construction",272.1
|
||||
"7630","Installation, Maintenance, and Repair",1709.3
|
||||
"6100","Farming, Fishing, and Forestry",376.1
|
||||
"860","Financial Specialists",865.9
|
||||
"7010","Installation, Maintenance, and Repair",2290.4
|
||||
"9720","Transportation and Material Moving",726.1
|
||||
"6520","Construction",1018.4
|
||||
"2015","Community and Social Services",811.9
|
||||
"5850","Office and Administrative Support",764.2
|
||||
"1240","Computer and Mathematical",623.2
|
||||
"8300","Production",1540.3
|
||||
"2910","Arts, Design, Entertainment, Sports, and Media",1450.2
|
||||
"2900","Arts, Design, Entertainment, Sports, and Media",929.8
|
||||
"1106","Computer and Mathematical",918
|
||||
"7020","Installation, Maintenance, and Repair",1302.8
|
||||
"3258","Healthcare Practitioners and Technicians",1148.4
|
||||
"9030","Transportation and Material Moving",895.3
|
||||
"150","Management",1733.2
|
||||
"4900","Sales and Related",717
|
||||
"3648","Healthcare Support",387.7
|
||||
"5820","Office and Administrative Support",873.1
|
||||
"1430","Architecture and Engineering",1439.2
|
||||
"3720","Protective Service",423.4
|
||||
"1610","Life, Physical, and Social Science",840.5
|
||||
"600","Business Operations",1004.9
|
||||
"4650","Personal Care and Service",1066.1
|
||||
"9510","Transportation and Material Moving",584.3
|
||||
"7840","Production",821.8
|
||||
"2860","Arts, Design, Entertainment, Sports, and Media",858.8
|
||||
"650","Business Operations",1131.2
|
||||
"940","Financial Specialists",1295.5
|
||||
"6840","Extraction",549.8
|
||||
"4240","Building and Grounds Cleaning and Maintenance",581.3
|
||||
"3620","Healthcare Support",602.8
|
||||
"5350","Office and Administrative Support",860.6
|
||||
"2920","Arts, Design, Entertainment, Sports, and Media",579.6
|
||||
"2700","Arts, Design, Entertainment, Sports, and Media",525
|
||||
"4500","Personal Care and Service",868.4
|
||||
"8810","Production",1214.5
|
||||
"2800","Arts, Design, Entertainment, Sports, and Media",424
|
||||
"4530","Personal Care and Service",655.4
|
||||
"1220","Computer and Mathematical",1086.8
|
||||
"3030","Healthcare Practitioners and Technicians",947.7
|
||||
"2100","Legal",8809.5
|
||||
"6710","Construction",333.2
|
||||
"520","Business Operations",844.3
|
||||
"3110","Healthcare Practitioners and Technicians",795.3
|
||||
"6730","Construction",1014.1
|
||||
"1060","Computer and Mathematical",904.4
|
||||
"1350","Architecture and Engineering",571.7
|
||||
"3840","Protective Service",117.7
|
||||
"5410","Office and Administrative Support",871.7
|
||||
"4540","Personal Care and Service",453.2
|
||||
"7855","Production",974.3
|
||||
"9750","Transportation and Material Moving",451.4
|
||||
"1820","Life, Physical, and Social Science",1644.8
|
||||
"8650","Production",688.3
|
||||
"1007","Computer and Mathematical",483.5
|
||||
"1310","Architecture and Engineering",327.3
|
||||
"6400","Construction",392.7
|
||||
"8710","Production",633.9
|
||||
"6200","Construction",5730.6
|
||||
"1720","Life, Physical, and Social Science",851.5
|
||||
"5020","Office and Administrative Support",295.1
|
||||
"4830","Sales and Related",622.6
|
||||
"1320","Architecture and Engineering",1148.7
|
||||
"6355","Construction",6414.2
|
||||
"5800","Office and Administrative Support",727.1
|
||||
"5420","Office and Administrative Support",1132.5
|
||||
"5330","Office and Administrative Support",1111.1
|
||||
"2440","Education, Training, and Library",370.5
|
||||
"8750","Production",406.1
|
||||
"1200","Computer and Mathematical",195.8
|
||||
"7410","Installation, Maintenance, and Repair",964.7
|
||||
"7260","Installation, Maintenance, and Repair",837.6
|
||||
"8760","Production",754.5
|
||||
"1400","Architecture and Engineering",678.2
|
||||
"8255","Production",1541
|
||||
"4640","Personal Care and Service",459.5
|
||||
"8620","Production",643.1
|
||||
"2760","Arts, Design, Entertainment, Sports, and Media",348.6
|
||||
"4340","Personal Care and Service",320.4
|
||||
"3940","Protective Service",653.5
|
||||
"820","Financial Specialists",459.9
|
||||
"40","Management",499.8
|
||||
"8500","Production",473.9
|
||||
"7360","Installation, Maintenance, and Repair",514.2
|
||||
"7140","Installation, Maintenance, and Repair",1216.4
|
||||
"726","Business Operations",603.5
|
||||
"1420","Architecture and Engineering",389
|
||||
"3646","Healthcare Support",423.9
|
||||
"5220","Office and Administrative Support",775.2
|
||||
"7150","Installation, Maintenance, and Repair",1187.4
|
||||
"5500","Office and Administrative Support",187.2
|
||||
"5165","Office and Administrative Support",516.7
|
||||
"8350","Production",827.8
|
||||
"6220","Construction",1284.3
|
||||
"6820","Extraction",215.5
|
||||
"2840","Arts, Design, Entertainment, Sports, and Media",513.5
|
||||
"9360","Transportation and Material Moving",819.6
|
||||
"640","Business Operations",569.9
|
||||
"7120","Installation, Maintenance, and Repair",392.1
|
||||
"6765","Construction",371
|
||||
"930","Financial Specialists",582.6
|
||||
"6600","Construction",498.8
|
||||
"1005","Computer and Mathematical",178.9
|
||||
"1900","Life, Physical, and Social Science",206
|
||||
"6120","Farming, Fishing, and Forestry",207.8
|
||||
"4420","Personal Care and Service",483.6
|
||||
"2060","Community and Social Services",636.7
|
||||
"60","Management",541.4
|
||||
"6360","Construction",389.4
|
||||
"7040","Installation, Maintenance, and Repair",240.3
|
||||
"8130","Production",548.9
|
||||
"7830","Production",160.1
|
||||
"1520","Architecture and Engineering",302.5
|
||||
"8600","Production",366
|
||||
"3945","Protective Service",296.3
|
||||
"5900","Office and Administrative Support",386
|
||||
"1840","Life, Physical, and Social Science",210.3
|
||||
"1740","Life, Physical, and Social Science",802.7
|
||||
"9040","Transportation and Material Moving",286.6
|
||||
"8000","Production",456.7
|
||||
"7000","Installation, Maintenance, and Repair",2368.6
|
||||
"5320","Office and Administrative Support",792.5
|
||||
"6720","Construction",271.9
|
||||
"6210","Construction",193.6
|
||||
"3520","Healthcare Practitioners and Technicians",404
|
||||
"7110","Installation, Maintenance, and Repair",182.3
|
||||
"3040","Healthcare Practitioners and Technicians",331.1
|
||||
"6530","Construction",598.9
|
||||
"7950","Production",723.1
|
||||
"8830","Production",345.8
|
||||
"7350","Installation, Maintenance, and Repair",259.3
|
||||
"7700","Production",6384.5
|
||||
"7240","Installation, Maintenance, and Repair",405.6
|
||||
"8930","Production",326.2
|
||||
"500","Business Operations",370.3
|
||||
"700","Business Operations",716.3
|
||||
"5630","Office and Administrative Support",586.3
|
||||
"1700","Life, Physical, and Social Science",172.5
|
||||
"7130","Installation, Maintenance, and Repair",504.4
|
||||
"137","Management",370.3
|
||||
"7710","Production",108.1
|
||||
"8400","Production",60
|
||||
"7900","Production",670.1
|
||||
"5250","Office and Administrative Support",636
|
||||
"900","Financial Specialists",128
|
||||
"6830","Extraction",98.4
|
||||
"7320","Installation, Maintenance, and Repair",404.5
|
||||
"8730","Production",97.2
|
||||
"8310","Production",379.6
|
||||
"1340","Architecture and Engineering",120.3
|
||||
"5920","Office and Administrative Support",202.3
|
||||
"4930","Sales and Related",374.2
|
||||
"5010","Office and Administrative Support",234.2
|
||||
"3750","Protective Service",120.7
|
||||
"7430","Installation, Maintenance, and Repair",522.1
|
||||
"6660","Construction",749.9
|
||||
"7850","Production",144.1
|
||||
"8100","Production",344.8
|
||||
"7540","Installation, Maintenance, and Repair",214.8
|
||||
"6010","Farming, Fishing, and Forestry",201
|
||||
"9415","Transportation and Material Moving",252.6
|
||||
"9310","Transportation and Material Moving",365.9
|
||||
"3850","Protective Service",5540.5
|
||||
"8630","Production",322.5
|
||||
"1600","Life, Physical, and Social Science",336.2
|
||||
"3140","Healthcare Practitioners and Technicians",129
|
||||
"3610","Healthcare Support",163.1
|
||||
"3740","Protective Service",2370.3
|
||||
"1440","Architecture and Engineering",94.1
|
||||
"7510","Installation, Maintenance, and Repair",333.9
|
||||
"360","Management",126.3
|
||||
"6740","Construction",79.2
|
||||
"1930","Life, Physical, and Social Science",204.8
|
||||
"9630","Transportation and Material Moving",212.5
|
||||
"7100","Installation, Maintenance, and Repair",172
|
||||
"4465","Personal Care and Service",255.7
|
||||
"2105","Legal",98.7
|
||||
"7610","Installation, Maintenance, and Repair",153.5
|
||||
"8450","Production",316.2
|
||||
"6300","Construction",130.6
|
||||
"6700","Construction",241.2
|
||||
"8530","Production",221.9
|
||||
"3000","Healthcare Practitioners and Technicians",377.2
|
||||
"8540","Production",214.6
|
||||
"1640","Life, Physical, and Social Science",219.7
|
||||
"330","Management",140.4
|
||||
"5530","Office and Administrative Support",214.2
|
||||
"9240","Transportation and Material Moving",432.3
|
||||
"1450","Architecture and Engineering",297.7
|
||||
"5200","Office and Administrative Support",34.2
|
||||
"9200","Transportation and Material Moving",336.8
|
||||
"9300","Transportation and Material Moving",249.6
|
||||
"8720","Production",273
|
||||
"8610","Production",687.5
|
||||
"8040","Production",199.3
|
||||
"8940","Production",100.4
|
||||
"8256","Production",151.2
|
||||
"3260","Healthcare Practitioners and Technicians",197.2
|
||||
"5340","Office and Administrative Support",186.2
|
||||
"8410","Production",133.1
|
||||
"3900","Protective Service",75.7
|
||||
"1300","Architecture and Engineering",1645.6
|
||||
"9520","Transportation and Material Moving",313
|
||||
"5230","Office and Administrative Support",349.1
|
||||
"425","Management",47.9
|
||||
"8250","Production",262.7
|
||||
"7160","Installation, Maintenance, and Repair",181.3
|
||||
"8330","Production",97.9
|
||||
"7730","Production",131.9
|
||||
"8420","Production",96
|
||||
"7920","Production",112.3
|
||||
"135","Management",174.9
|
||||
"8200","Production",154.4
|
||||
"8510","Production",113.1
|
||||
"9650","Transportation and Material Moving",167.1
|
||||
"8920","Production",322.8
|
||||
"5030","Office and Administrative Support",90.4
|
||||
"9110","Transportation and Material Moving",120.7
|
||||
"6005","Farming, Fishing, and Forestry",429.5
|
||||
"7300","Installation, Maintenance, and Repair",194.5
|
||||
"9560","Transportation and Material Moving",89.8
|
||||
"830","Financial Specialists",227.5
|
||||
"7740","Production",236.9
|
||||
"7550","Installation, Maintenance, and Repair",52.6
|
||||
"8550","Production",225
|
||||
"9410","Transportation and Material Moving",328.1
|
||||
"2740","Arts, Design, Entertainment, Sports, and Media",143.8
|
||||
"5150","Office and Administrative Support",223.8
|
||||
"3250","Healthcare Practitioners and Technicians",648.1
|
||||
"5910","Office and Administrative Support",70.2
|
||||
"1800","Life, Physical, and Social Science",284.1
|
||||
"7940","Production",111.7
|
||||
"8860","Production",65.1
|
||||
"5130","Office and Administrative Support",82.5
|
||||
"8020","Production",11.8
|
||||
"1710","Life, Physical, and Social Science",90.7
|
||||
"3200","Healthcare Practitioners and Technicians",136.9
|
||||
"7560","Installation, Maintenance, and Repair",112.4
|
||||
"1910","Life, Physical, and Social Science",180.4
|
||||
"8910","Production",93.3
|
||||
"6920","Extraction",91.2
|
||||
"8850","Production",63.5
|
||||
"4460","Personal Care and Service",120
|
||||
"8460","Production",209.4
|
||||
"8060","Production",15.8
|
||||
"7030","Installation, Maintenance, and Repair",59
|
||||
"4410","Personal Care and Service",43.5
|
||||
"8010","Production",99.4
|
||||
"6500","Construction",54.3
|
||||
"8340","Production",19.8
|
||||
"7960","Production",16.3
|
||||
"6750","Construction",59.4
|
||||
"7440","Installation, Maintenance, and Repair",4
|
||||
"1500","Architecture and Engineering",98.9
|
||||
"1230","Computer and Mathematical",78.7
|
||||
"7930","Production",15
|
||||
"6540","Construction",9.9
|
||||
"5210","Office and Administrative Support",19
|
||||
"3210","Healthcare Practitioners and Technicians",80.1
|
||||
"3256","Healthcare Practitioners and Technicians",196.9
|
||||
"8210","Production",42.9
|
||||
"3830","Protective Service",6.8
|
||||
"510","Business Operations",121
|
||||
"7050","Installation, Maintenance, and Repair",11.5
|
||||
"9740","Transportation and Material Moving",8.2
|
||||
"9260","Transportation and Material Moving",94.7
|
||||
"1330","Architecture and Engineering",8
|
||||
"4160",NA,6
|
||||
"6020","Farming, Fishing, and Forestry",12
|
||||
"6430","Construction",2.4
|
||||
"325","Management",32.4
|
||||
"3120","Healthcare Practitioners and Technicians",13.3
|
||||
"8900","Production",5.3
|
||||
"3257","Healthcare Practitioners and Technicians",6.1
|
||||
"1830","Life, Physical, and Social Science",3.8
|
||||
"5830","Office and Administrative Support",1.9
|
||||
"6930","Extraction",9.4
|
||||
"9340","Transportation and Material Moving",9.3
|
||||
"9500","Transportation and Material Moving",9.6
|
||||
"1950","Life, Physical, and Social Science",0.8
|
||||
"8120","Production",4.2
|
||||
"1510","Architecture and Engineering",70
|
||||
"9230","Transportation and Material Moving",21.5
|
||||
"8440","Production",5.8
|
||||
"8840","Production",9.5
|
||||
"9330","Transportation and Material Moving",17.8
|
||||
"6910","Extraction",5.7
|
||||
"8360","Production",6.2
|
||||
"7520","Installation, Maintenance, and Repair",1.2
|
||||
"7600","Installation, Maintenance, and Repair",9.1
|
||||
"1815","Life, Physical, and Social Science",12.7
|
||||
|
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,42 @@
|
||||
|
||||
#
|
||||
# Load data
|
||||
#
|
||||
|
||||
players <- read.csv("data/nba-top50scorers-2022-23.csv")
|
||||
head(players)
|
||||
|
||||
play20 <- players[1:20,]
|
||||
|
||||
#
|
||||
# Heatmap
|
||||
#
|
||||
|
||||
# Four columns
|
||||
heatmap(as.matrix(play20[,c("MP", "FG", "FGpct", "PTS")]),
|
||||
scale = "column",
|
||||
Rowv = NA, Colv = NA)
|
||||
|
||||
# Names
|
||||
heatmap(as.matrix(play20[,c("MP", "FG", "FGpct", "PTS")]),
|
||||
scale = "column",
|
||||
labRow = play20$Player,
|
||||
Rowv = NA, Colv = NA)
|
||||
|
||||
# Change order
|
||||
playrev <- play20[order(play20$PTS, decreasing = FALSE),]
|
||||
heatmap(as.matrix(playrev[,c("MP", "FG", "FGpct", "PTS")]),
|
||||
scale = "column",
|
||||
labRow = playrev$Player,
|
||||
Rowv = NA, Colv = NA)
|
||||
|
||||
|
||||
# Color
|
||||
playrev <- play20[order(play20$PTS, decreasing = FALSE),]
|
||||
heatmap(as.matrix(playrev[,c("MP", "FG", "FGpct", "X2Ppct", "X3Ppct", "FTpct", "PTS")]),
|
||||
scale = "column",
|
||||
labRow = playrev$Player,
|
||||
cexCol = 1,
|
||||
col = rev(hcl.colors(20, palette = "Blues 3")),
|
||||
Rowv = NA, Colv = NA)
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
# install.packages("igraph")
|
||||
library(igraph)
|
||||
|
||||
# Empty graph
|
||||
g <- make_empty_graph(directed=FALSE)
|
||||
|
||||
#
|
||||
# Add vertices
|
||||
#
|
||||
|
||||
g <- g %>% add_vertices(1, color="#a3b8a3", size=50)
|
||||
g <- g %>% add_vertices(1, color = "#d7c668", size=50)
|
||||
g <- g %>% add_vertices(10, color = "#cccccc", size=20)
|
||||
plot(g)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Add edges (to connect vertices)
|
||||
#
|
||||
|
||||
# Connect the two first vertices
|
||||
g <- g %>% add_edges(c(1,2), weight=0.01, color="#cccccc")
|
||||
plot(g)
|
||||
|
||||
# Connect 8 to 10 and 7
|
||||
g <- g %>% add_edges(c(8,10, 8,7), weight=0.01, color="#cccccc")
|
||||
plot(g)
|
||||
|
||||
# Connect 3, 4, and 5 to 1
|
||||
g <- g %>% add_edges(c(3,1, 4,1, 5,1), weight=0.01, color="#cccccc")
|
||||
plot(g)
|
||||
|
||||
# Connect 11 and 12 to 2 with more weight
|
||||
g <- g %>% add_edges(c(12,2, 11,2), weight=1, color="#cccccc")
|
||||
plot(g)
|
||||
|
||||
# Layouts
|
||||
par(mfrow=c(2,2), mar=c(2,0,4,0))
|
||||
plot(g, vertex.label=NA, layout=layout_with_fr, main="Force-directed")
|
||||
plot(g, vertex.label=NA, layout=layout_on_grid, main="Grid")
|
||||
plot(g, vertex.label=NA, layout=layout_in_circle, main="Circle")
|
||||
plot(g, vertex.label=NA, layout=layout_nicely, main="Nicely")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Example with more data: Job Switching Network
|
||||
#
|
||||
|
||||
# Load data
|
||||
occs <- read.csv("data/occ_codes.tsv", sep="\t")
|
||||
occverts <- read.csv("data/occverts.csv")
|
||||
occlinks <- read.csv("data/occlinks.csv")
|
||||
occgrps <- unique(occverts$grp)
|
||||
|
||||
head(occverts)
|
||||
head(occlinks)
|
||||
|
||||
# Subsetting and weights
|
||||
occlinks$relwt <- occlinks$value / max(occlinks$value)
|
||||
occlinks_sub <- occlinks[occlinks$relwt >= .01,]
|
||||
occverts_sub <- occverts[occverts$id %in% occlinks_sub$source | occverts$id %in% occlinks_sub$target,]
|
||||
|
||||
# Vertices colors
|
||||
occverts_sub$color <- colors()[match(occverts_sub$grp, occgrps)*2]
|
||||
|
||||
# Form the graph
|
||||
g <- make_empty_graph(directed=FALSE)
|
||||
g <- g %>%
|
||||
add_vertices(dim(occverts_sub)[1], color=occverts_sub$color, size=sqrt(occverts_sub$nwt)/10) %>%
|
||||
set_vertex_attr("occid", value = occverts_sub$id) %>%
|
||||
set_vertex_attr("grp", value = occverts_sub$grp)
|
||||
|
||||
# Get id of added vertices
|
||||
occverts_sub$vid <- match(occverts_sub$id, V(g)$occid)
|
||||
occverts_sub$name <- occs$name[match(occverts_sub$id, occs$code)]
|
||||
g <- g %>% set_vertex_attr("name", value = occverts_sub$name)
|
||||
|
||||
# Join ids
|
||||
occlinks_sub$vid_source <- occverts_sub$vid[match(occlinks_sub$source, occverts_sub$id)]
|
||||
occlinks_sub$vid_target <- occverts_sub$vid[match(occlinks_sub$target, occverts_sub$id)]
|
||||
|
||||
# Add edges
|
||||
for (i in 1:dim(occlinks_sub)[1]) {
|
||||
g <- g %>% add_edges(c(occlinks_sub$vid_source[i], occlinks_sub$vid_target[i]),
|
||||
weight=occlinks_sub$relwt[i]*20,
|
||||
color="#f0f0f0")
|
||||
}
|
||||
|
||||
# Plot
|
||||
plot(g, vertex.label = NA)
|
||||
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
# install.packages("MASS")
|
||||
library(MASS)
|
||||
|
||||
|
||||
#
|
||||
# Load data
|
||||
#
|
||||
|
||||
players <- read.csv("data/nba-top50scorers-2022-23.csv")
|
||||
head(players)
|
||||
|
||||
|
||||
#
|
||||
# Parallel coordinates
|
||||
#
|
||||
|
||||
fnames <- c("MP", "FG", "FGpct", "X2Ppct", "X3Ppct", "FTpct", "PTS")
|
||||
psub <- players[,fnames]
|
||||
|
||||
# Parallel coordinates
|
||||
parcoord(psub)
|
||||
|
||||
# Pick out player
|
||||
curr_players <- c("Joel Embiid", "Giannis Antetokounmpo",
|
||||
"Stephen Curry", "LeBron James")
|
||||
par(mfrow=c(2,2))
|
||||
for (pl in curr_players) {
|
||||
col <- rep("gray", dim(players)[1])
|
||||
lwd <- rep(.5, dim(players)[1])
|
||||
i <- which(players$Player == pl)
|
||||
col[i] <- "blue"
|
||||
lwd[i] <- 3
|
||||
parcoord(psub, col=col, lwd=lwd, main=pl)
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Scatterplot Matrix
|
||||
par(las=1)
|
||||
plot(psub)
|
||||
@@ -0,0 +1,16 @@
|
||||
"code" "pctnokidsf" "pctkidsf" "pctnokidsm" "pctkidsm" "desc" "durmedkidsf" "durmednokidsf" "durmedkidsm" "durmednokidsm"
|
||||
30201 0.2 20.7 0.2 10.3 "Homework" 45 0 45 0
|
||||
30101 0.9 71.2 0.6 46.8 "Physical care" 50 0 31 0
|
||||
30103 0.8 21.6 0.3 21.4 "Playing, not sports" 70 0 60 0
|
||||
30112 0.9 48 0.3 27.2 "Picking up/dropping off" 10 0 10 0
|
||||
30102 0.2 14.5 0 9.1 "Reading to/with" 20 0 20 0
|
||||
30302 0.1 3 0 0.6 "Obtaining medical care" 60 0 50 0
|
||||
30301 0.1 3 0 0.8 "Providing medical care" 15 0 30 0
|
||||
30111 0.2 11.7 0.2 4.9 "Waiting for/with" 15 0 15 0
|
||||
30202 0 1.7 0 0.5 "Meetings and school conferences" 25 0 30 0
|
||||
30106 0.3 13.8 0.2 5.7 "Talking with/listening" 25 0 25 0
|
||||
30110 0.1 4.8 0 2.6 "Attending events" 71 0 85 0
|
||||
30109 0.3 12.1 0.1 5.1 "Looking after (as a pri. activity)" 40 0 45 0
|
||||
30105 0 1.3 0 1 "Playing sports" 43 0 60 0
|
||||
30108 0 6.4 0 1.6 "Organization and planning" 10 0 15 0
|
||||
30303 0.1 1.4 0 0.3 "Waiting for children's health" 20 0 30 0
|
||||
|
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Who Takes Care of the Kids</title>
|
||||
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
|
||||
<div id="main-wrapper">
|
||||
<h1>Time with the Kids</h1>
|
||||
<div id="chart"></div>
|
||||
</div>
|
||||
|
||||
<script src="js/d3.v7.min.js"></script>
|
||||
<script src="js/barbell.js"></script>
|
||||
@@ -0,0 +1,114 @@
|
||||
// Dimensions of chart.
|
||||
let margin = { top: 20, right: 20, bottom: 50, left: 290 },
|
||||
// width = parseInt(d3.select('#chart').style('width'), 10) - margin.left - margin.right,
|
||||
width = 650 - margin.left - margin.right,
|
||||
height = 550 - margin.top - margin.bottom;
|
||||
|
||||
// Start SVG
|
||||
let svg = d3.select("#chart").append("svg")
|
||||
.attr("width", width + margin.left + margin.right)
|
||||
.attr("height", height + margin.top + margin.bottom)
|
||||
.append("g")
|
||||
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
||||
|
||||
// Scales: x and y
|
||||
let x = d3.scaleLinear()
|
||||
.domain([0, 80])
|
||||
.range([0, width]);
|
||||
let y = d3.scaleBand()
|
||||
// .domain([3, 6])
|
||||
.range([height, 0]);
|
||||
|
||||
|
||||
let activities;
|
||||
let xAxis, yAxis, xAxisEl, yAxisEl;
|
||||
let barbell;
|
||||
|
||||
|
||||
// Load data
|
||||
const activitiesData = Promise.all([
|
||||
d3.tsv("data/hh-activities-withkids.tsv", d3.autoType)
|
||||
]);
|
||||
activitiesData.then(function(data) {
|
||||
activities = data[0].sort((a, b) => a.pctkidsf - b.pctkidsf);
|
||||
// console.log(activities);
|
||||
|
||||
// Initialize chart now that data is loaded.
|
||||
initChart();
|
||||
});
|
||||
|
||||
|
||||
function initChart() {
|
||||
|
||||
// x-axis
|
||||
xAxis = d3.axisBottom(x)
|
||||
.tickFormat(d => d + "%")
|
||||
.ticks(5)
|
||||
.tickSize(-height-8)
|
||||
.tickPadding(5);
|
||||
xAxisEl = svg.append("g")
|
||||
.attr("class", "x axis bottom")
|
||||
.attr("transform", "translate(0,"+(height+8)+")");
|
||||
xAxisEl.append("text")
|
||||
.attr("class", "axistitle")
|
||||
.attr("text-anchor", "start")
|
||||
.attr("x", 0).attr("y", 0)
|
||||
.attr("dx", "-.75em").attr("dy", "2.5em")
|
||||
.text("Engaged in Activity");
|
||||
xAxisEl.call(xAxis);
|
||||
|
||||
|
||||
// y-axis
|
||||
y.domain(activities.map(d => d.desc));
|
||||
yAxis = d3.axisLeft(y)
|
||||
.tickSize(0);
|
||||
yAxisEl = svg.append("g")
|
||||
.attr("class", "y axis left")
|
||||
.attr("transform", "translate("+(-8)+",0)");
|
||||
yAxisEl.call(yAxis);
|
||||
|
||||
|
||||
// barbells
|
||||
barbell = svg.selectAll(".barbell")
|
||||
.data(activities)
|
||||
.join("g")
|
||||
.attr("class", "barbell")
|
||||
.attr("transform", d =>
|
||||
"translate(0,"+(y(d.desc)+(y.bandwidth()/2))+")")
|
||||
.attr("id", d => "act"+d.code);
|
||||
|
||||
// connecting lines
|
||||
barbell.append("line")
|
||||
.attr("x1", d => x(d.pctkidsm))
|
||||
.attr("x2", d => x(d.pctkidsf))
|
||||
.attr("y1", 0).attr("y2", 0)
|
||||
.attr("stroke", "#000000");
|
||||
|
||||
// circles
|
||||
barbell.append("circle")
|
||||
.attr("class", "men")
|
||||
.attr("cx", d => x(d.pctkidsm))
|
||||
.attr("cy", 0)
|
||||
.attr("r", 6);
|
||||
barbell.append("circle")
|
||||
.attr("class", "women")
|
||||
.attr("cx", d => x(d.pctkidsf))
|
||||
.attr("cy", 0)
|
||||
.attr("r", 6);
|
||||
|
||||
// labels
|
||||
svg.append("text")
|
||||
.attr("x", x(activities[14].pctkidsm))
|
||||
.attr("y", y(activities[14].desc))
|
||||
.attr("text-anchor", "middle")
|
||||
.text("MEN");
|
||||
svg.append("text")
|
||||
.attr("x", x(activities[14].pctkidsf))
|
||||
.attr("y", y(activities[14].desc))
|
||||
.attr("text-anchor", "middle")
|
||||
.text("WOMEN");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
// https://d3js.org v7.4.0 Copyright 2010-2022 Mike Bostock
|
||||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";function n(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function e(t){let e=t,r=t,i=t;function o(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<0?e=r+1:o=r}while(e<o)}return e}return 2!==t.length&&(e=(n,e)=>t(n)-e,r=n,i=(e,r)=>n(t(e),r)),{left:o,center:function(t,n,r=0,i=t.length){const a=o(t,n,r,i-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<=0?e=r+1:o=r}while(e<o)}return e}}}function r(t){return null===t?NaN:+t}const i=e(n),o=i.right,a=i.left,u=e(r).center;var c=o;function f(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function s(t){return 0|t.length}function l(t){return!(t>0)}function h(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function d(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function p(t,n){const e=d(t,n);return e?Math.sqrt(e):e}function g(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class y{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}class InternMap extends Map{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(v(this,t))}has(t){return super.has(v(this,t))}set(t,n){return super.set(_(this,t),n)}delete(t){return super.delete(b(this,t))}}class InternSet extends Set{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(v(this,t))}add(t){return super.add(_(this,t))}delete(t){return super.delete(b(this,t))}}function v({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function _({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function b({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function m(t){return null!==t&&"object"==typeof t?t.valueOf():t}function x(t){return t}function w(t,...n){return k(t,x,x,n)}function M(t,...n){return k(t,Array.from,x,n)}function A(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function T(t,n,...e){return k(t,x,n,e)}function S(t,n,...e){return k(t,Array.from,n,e)}function E(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function k(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new InternMap,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function N(t,n){return Array.from(n,(n=>t[n]))}function C(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&2!==e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=z(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>z(e[t],e[n])))),N(t,r)}return t.sort(P(e))}function P(t=n){if(t===n)return z;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function z(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}var D=Array.prototype.slice;function R(t){return()=>t}var F=Math.sqrt(50),q=Math.sqrt(10),O=Math.sqrt(2);function U(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=I(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function I(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=F?10:o>=q?5:o>=O?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=F?10:o>=q?5:o>=O?2:1)}funLine truncated
|
||||
@@ -0,0 +1,91 @@
|
||||
/* #Reset & Basics (Inspired by E. Meyers)
|
||||
================================================== */
|
||||
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline; }
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
||||
display: block; }
|
||||
body {
|
||||
line-height: 1; }
|
||||
ol, ul {
|
||||
list-style: none; }
|
||||
blockquote, q {
|
||||
quotes: none; }
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none; }
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0; }
|
||||
|
||||
|
||||
/* Main layout
|
||||
============================ */
|
||||
|
||||
#main-wrapper {
|
||||
width: 600px;
|
||||
margin: 40px auto;
|
||||
font-family: Georgia, serif;
|
||||
}
|
||||
h1 {
|
||||
font-family: Georgia, serif;
|
||||
font-size: 1.45em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/* Chart
|
||||
============================ */
|
||||
|
||||
#chart {
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
}
|
||||
text {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: .8rem;
|
||||
}
|
||||
|
||||
.axis .axistitle {
|
||||
text-transform: uppercase;
|
||||
fill: #333;
|
||||
font-size: .8rem;
|
||||
}
|
||||
.axis path,
|
||||
.axis line {
|
||||
fill: none;
|
||||
stroke: #e0e0e0;
|
||||
stroke-width: .5px;
|
||||
shape-rendering: crispEdges;
|
||||
}
|
||||
.x.axis path, .y.axis path {
|
||||
display: none;
|
||||
}
|
||||
.barbell line {
|
||||
stroke-width: 1px;
|
||||
}
|
||||
.barbell circle {
|
||||
stroke: #000;
|
||||
stroke-width: 1px;
|
||||
}
|
||||
.barbell circle.men {
|
||||
fill: #317e7f;
|
||||
}
|
||||
.barbell circle.women {
|
||||
fill: #f98e1a;
|
||||
}
|
||||
|
||||
|
||||
/* Interaction
|
||||
============================ */
|
||||
|
||||
circle.current {
|
||||
stroke: #000;
|
||||
stroke-width: 3px;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,292 @@
|
||||
"activity" "schappy_mean" "meaning_mean" "descrip" "relwt"
|
||||
"010301" 3.65 5.2875 "Health-related self care" 0.3437
|
||||
"010399" 0.4441 4.332 "Self care, misc." 0.0022
|
||||
"020101" 4.3016 5.0383 "Interior cleaning" 1.362
|
||||
"020102" 4.1979 4.866 "Laundry" 0.806
|
||||
"020103" 4.8934 5.4284 "Sewing, repairing, and maintaining textiles" 0.076
|
||||
"020104" 4.5711 4.8468 "Storing interior household items, inc. food" 0.2002
|
||||
"020201" 4.6729 5.1604 "Food and drink prep." 3.8685
|
||||
"020202" 4.9016 5.5208 "Food presentation" 0.0659
|
||||
"020203" 4.3252 4.9249 "Kitchen and food clean-up" 0.9425
|
||||
"020301" 4.5569 5.2724 "Interior arrangement, decoration, and repairs" 0.1527
|
||||
"020302" 4.7587 4.8901 "Building and repairing furniture" 0.0073
|
||||
"020303" 4.2926 5.29 "Heating and cooling" 0.0446
|
||||
"020401" 4.1507 5.0967 "Exterior cleaning" 0.1179
|
||||
"020402" 4.8953 5.3774 "Exterior repair, improvements, and decoration" 0.0696
|
||||
"020501" 4.6695 5.2066 "Lawn, garden, and houseplant care" 0.6958
|
||||
"020502" 4.0334 5.083 "Ponds, pools, and hot tubs" 0.0143
|
||||
"020602" 4.591 5.3077 "Care for animals and pets" 0.6464
|
||||
"020603" 4.9233 5.2797 "Walking, exercising, playing with animals" 0.4182
|
||||
"020699" 4.4816 4.6297 "Pet and animal care, misc." 0.0032
|
||||
"020701" 4.3308 5.1412 "Vehicle repair and maintenance (by self)" 0.14
|
||||
"020801" 4.3562 5.1824 "App, tool, toy set-up, repair, and maint (by self)" 0.0589
|
||||
"020901" 3.715 4.999 "Financial management" 0.1445
|
||||
"020902" 4.386 4.9614 "Household and personal organization" 0.6869
|
||||
"020903" 4.3574 4.8634 "Household and personal mail and messages (except e-mail)" 0.1483
|
||||
"020904" 4.1977 4.3381 "Household and personal e-mail and messages" 0.2182
|
||||
"020905" 4.0463 4.9778 "Home security" 0.023
|
||||
"029999" 4.4219 4.895 "Household activities, misc." 0.0023
|
||||
"030101" 4.8037 5.4819 "Care for household children" 1.7066
|
||||
"030102" 5.3559 5.7285 "Reading to/with household children" 0.1706
|
||||
"030103" 5.5047 5.7429 "Playing with household children" 0.5338
|
||||
"030104" 5.4589 5.6239 "Arts and crafts with household children" 0.0131
|
||||
"030105" 5.3366 5.712 "Playing sports with household children" 0.0246
|
||||
"030106" 4.997 5.5712 "Talking with/listening to household children" 0.1503
|
||||
"030108" 4.4771 5.0912 "Organization for household children" 0.0445
|
||||
"030109" 5.0333 5.5065 "Looking after household children" 0.1501
|
||||
"030110" 5.0778 5.615 "Attending household children's events" 0.0925
|
||||
"030111" 4.7433 5.3825 "Waiting for/with household children" 0.0482
|
||||
"030112" 4.7327 5.3525 "Picking up/dropping off household children" 0.3373
|
||||
"030199" 5.0626 5.4164 "Caring for and helping household children, misc." 0.0058
|
||||
"030201" 4.5065 5.5892 "Homework (household children)" 0.1711
|
||||
"030202" 4.062 5.6243 "Meetings and school conferences (household children)" 0.0058
|
||||
"030203" 5.0198 5.808 "Home schooling of household children" 0.0062
|
||||
"030299" 3.4516 5.3227 "Activities related to household child's education, misc." 0.0037
|
||||
"030301" 3.2966 5.5604 "Providing medical care to household children" 0.0218
|
||||
"030302" 3.484 5.545 "Obtaining medical care for household children" 0.0127
|
||||
"030303" 2.7979 5.6905 "Waiting associated with household children's health" 0.0101
|
||||
"030401" 4.3313 5.5832 "Care for household adults" 0.0634
|
||||
"030402" 4.6669 5.0003 "Looking after household adult (as a primary activity)" 0.0043
|
||||
"030403" 3.7147 5.525 "Providing medical care to household adult" 0.021
|
||||
"030404" 4.71 5.7405 "Obtaining medical and care services for household adult" 0.0075
|
||||
"030405" 4.234 5.476 "Waiting associated with caring for household adults" 0.006
|
||||
"030501" 4.3418 5.0822 "Helping household adults" 0.0088
|
||||
"030502" 3.9261 5.5183 "Organization and planning for household adults" 0.0032
|
||||
"030503" 4.6838 5.0713 "Picking up/dropping off household adult" 0.0368
|
||||
"030504" 4.8728 5.4733 "Waiting associated with helping household adults" 0.0247
|
||||
"030599" 4.7353 5.1179 "Helping household adults, misc." 0.0041
|
||||
"040101" 5.3144 5.6892 "Care for non-household children" 0.0835
|
||||
"040102" 5.632 5.8949 "Reading to/with non-household children" 0.0091
|
||||
"040103" 5.7316 5.8642 "Playing with non-household children" 0.116
|
||||
"040105" 4.7162 6 "Playing sports with non-household children" 0.005
|
||||
"040106" 5.632 5.8326 "Talking with/listening to non-household children" 0.0251
|
||||
"040108" 4.6278 5.5581 "Organization and planning for non-household children" 0.0052
|
||||
"040109" 5.3345 5.8355 "Looking after non-household children (as primary activity)" 0.033
|
||||
"040110" 5.5768 5.7883 "Attending non-household children's events" 0.0165
|
||||
"040111" 5.1291 5.322 "Waiting for/with non-household children" 0.0074
|
||||
"040112" 5.0798 5.5207 "Dropping off/picking up non-household children" 0.0691
|
||||
"040199" 5.5774 5.7106 "Caring for and helping non-household children, misc." 0.0054
|
||||
"040201" 4.8287 5.8439 "Homework (non-household children)" 0.0077
|
||||
"040401" 4.5175 5.6303 "Care for non-household adults" 0.0244
|
||||
"040402" 3.6183 5.4763 "Looking after non-household adult" 0.005
|
||||
"040403" 4.3324 5.7824 "Providing medical care to non-household adult" 0.0083
|
||||
"040404" 3.697 5.7815 "Obtaining medical and care svcs for non-household adult" 0.0028
|
||||
"040405" 3.8136 5.5421 "Waiting associated with caring for non-household adults" 0.0045
|
||||
"040501" 4.7363 5.3113 "Hswrk, cooking, and shopping asst, non-household adults" 0.0447
|
||||
"040502" 4.6688 5.368 "House and lawn maint and repair asst, non-household adults" 0.0436
|
||||
"040503" 5.3119 4.9995 "Animal and pet care assistance for non-household adults" 0.0134
|
||||
"040504" 4.5605 5.2475 "Vehicle/appliance maint/repair asst, non-household adults" 0.0201
|
||||
"040505" 4.4638 4.9507 "Financial mgmt asst for non-household adults" 0.0049
|
||||
"040506" 4.1688 5.3376 "household mgmt and paperwork asst, non-household adults" 0.0255
|
||||
"040507" 4.9319 5.3192 "Picking up/dropping off non-household adult" 0.1284
|
||||
"040508" 4.2182 5.2695 "Waiting associated with helping non-household adults" 0.023
|
||||
"040599" 4.3443 5.2868 "Helping non-household adults, misc." 0.015
|
||||
"050101" 4.2106 5.0372 "Work, main job" 3.8671
|
||||
"050102" 4.2169 5.0135 "Work, other job(s)" 0.1346
|
||||
"050104" 4.1585 4.952 "Waiting associated with working" 0.0258
|
||||
"050199" 3.502 3.8063 "Working, misc." 0.0012
|
||||
"050201" 4.8683 4.8224 "Socializing, relaxing, and leisure as part of job" 0.0028
|
||||
"050202" 4.6143 4.9853 "Eating and drinking as part of job" 0.0178
|
||||
"050301" 5.1982 5.486 "Income-generating hobbies, crafts, and food" 0.0079
|
||||
"050303" 4.7095 4.9767 "Income-generating services" 0.0307
|
||||
"050304" 3.7731 5.3123 "Income-generating rental property activities" 0.0053
|
||||
"050399" 4.5872 5.2503 "Other income-generating activities, misc." 0.0391
|
||||
"050401" 3.4136 5.4454 "Job search activities" 0.1018
|
||||
"050403" 4.4473 5.6315 "Job interviewing" 0.0046
|
||||
"060101" 4.0938 4.9396 "Taking class for degree, certification, or lic" 0.1708
|
||||
"060102" 4.8102 5.4599 "Taking class for personal interest" 0.0199
|
||||
"060103" 3.7852 5.4278 "Waiting associated with taking classes" 0.005
|
||||
"060201" 5.3468 5.7823 "Extracurricular club activities" 0.0028
|
||||
"060202" 4.7063 5.0467 "Extracurricular music and performance activities" 0.0049
|
||||
"060299" 4.8569 3.7138 "Education-related extracurricular activities, misc." 0.0017
|
||||
"060301" 3.3418 4.9021 "Homework for class, for degree" 0.2883
|
||||
"060302" 4.9457 5.6787 "Homework for class, for personal interest" 0.0067
|
||||
"060399" 3.0733 4.7988 "Research/homework misc." 0.0048
|
||||
"060401" 5.1 5.8001 "Admin activities: class for degree, cert, or lic" 0.0048
|
||||
"069999" 3.8977 5.3269 "Education, misc." 0.0103
|
||||
"070101" 4.3286 4.8367 "Grocery shopping" 0.5658
|
||||
"070102" 4.2173 4.872 "Purchasing gas" 0.0943
|
||||
"070103" 4.6715 4.8424 "Purchasing food (not groceries)" 0.3922
|
||||
"070104" 4.6217 4.9111 "Shopping" 1.0884
|
||||
"070105" 3.8775 5.1629 "Waiting associated with shopping" 0.0118
|
||||
"070201" 4.6118 4.9319 "Comparison shopping" 0.0037
|
||||
"080101" 5.0985 5.5574 "Using paid childcare services" 0.0073
|
||||
"080201" 4.2378 4.9952 "Banking" 0.0579
|
||||
"080202" 4.6522 5.3043 "Using other financial services" 0.0055
|
||||
"080203" 4.5258 5.3144 "Waiting associated w/banking/financial services" 0.0023
|
||||
"080401" 3.5839 5.4735 "Using health and care services outside the home" 0.1335
|
||||
"080402" 3.5935 4.8952 "Using in-home health and care services" 0.0068
|
||||
"080403" 3.3676 5.2215 "Waiting associated with medical services" 0.031
|
||||
"080501" 4.8617 5.0354 "Using personal care services" 0.0583
|
||||
"080502" 4.809 3.6661 "Waiting associated w/personal care services" 0.0025
|
||||
"080601" 3.9619 5.0571 "Activities rel. to purchasing/selling real estate" 0.0125
|
||||
"080701" 3.0977 5.7036 "Using veterinary services" 0.0085
|
||||
"080702" 4.4371 5.4764 "Waiting associated with veterinary services" 0.003
|
||||
"089999" 4.8267 5.1165 "Professional and personal services, misc." 0.0083
|
||||
"090103" 4.9078 5.18 "Using clothing repair and cleaning services" 0.0066
|
||||
"090201" 4.0885 5.0779 "Using home maint/repair/décor/construction svcs" 0.0121
|
||||
"090202" 4.866 5.2007 "Wtg assoc w/ home main/repair/décor/constr" 0.0058
|
||||
"090301" 4.139 4.4996 "Using pet services" 0.0043
|
||||
"090401" 5.0353 5.5002 "Using lawn and garden services" 0.0034
|
||||
"090501" 3.5476 4.8717 "Using vehicle maintenance or repair services" 0.021
|
||||
"090502" 4.4548 4.9964 "Waiting assoc with vehicle main. or repair svcs" 0.0087
|
||||
"100102" 4.036 5.3569 "Using social services" 0.0034
|
||||
"100103" 3.6129 5.5428 "Obtaining licenses and paying fines, fees, taxes" 0.0071
|
||||
"100201" 3.8247 5.8242 "Civic obligations and participation" 0.0055
|
||||
"100304" 4.2609 4.9115 "Waiting associated with using government services" 0.0028
|
||||
"110101" 4.8524 5.1731 "Eating and drinking" 10
|
||||
"110201" 4.6021 4.9123 "Waiting associated w/eating and drinking" 0.0332
|
||||
"120101" 5.0809 5.424 "Socializing and communicating" 2.5822
|
||||
"120201" 5.4271 5.486 "Attending or hosting parties/receptions/ceremonies" 0.164
|
||||
"120202" 4.4307 5.3018 "Attending meetings for personal interest (not volunteering)" 0.0262
|
||||
"120301" 4.6856 5.1863 "Relaxing, thinking" 1.0886
|
||||
"120302" 4.5497 5.0903 "Tobacco and drug use" 0.0602
|
||||
"120303" 4.634 4.7545 "Television and movies" 5.058
|
||||
"120304" 4.6446 5.4465 "Television (religious)" 0.0193
|
||||
"120305" 4.5594 5.1203 "Listening to the radio" 0.0842
|
||||
"120306" 4.9839 5.1187 "Listening to/playing music" 0.112
|
||||
"120307" 4.9215 4.6528 "Playing games" 0.4886
|
||||
"120308" 4.274 4.4493 "Computer use for leisure (exc. Games)" 0.5267
|
||||
"120309" 4.9311 5.2819 "Arts and crafts as a hobby" 0.0832
|
||||
"120311" 4.9605 5.5621 "Hobbies, except arts and crafts and collecting" 0.0094
|
||||
"120312" 4.5865 4.8958 "Reading for personal interest" 1.1138
|
||||
"120313" 4.8226 5.2921 "Writing for personal interest" 0.0148
|
||||
"120399" 5.3157 5.4208 "Relaxing and leisure, misc." 0.0091
|
||||
"120401" 5.2838 5.2415 "Attending performing arts" 0.0313
|
||||
"120402" 5.2915 5.4177 "Attending museums" 0.019
|
||||
"120403" 5.1679 5.0339 "Attending movies/film" 0.0597
|
||||
"120404" 4.9542 4.7208 "Attending gambling establishments" 0.0142
|
||||
"120499" 5.3123 5.3884 "Arts and entertainment, misc." 0.0612
|
||||
"120504" 5.3712 5.571 "Waiting associated with arts and entertainment" 0.0042
|
||||
"130101" 5.1623 5.4596 "Doing aerobics" 0.0089
|
||||
"130102" 5.2133 4.9253 "Playing baseball" 0.0034
|
||||
"130103" 5.3224 5.1499 "Playing basketball" 0.0297
|
||||
"130104" 5.3086 5.3288 "Biking" 0.0459
|
||||
"130105" 5.1553 4.7978 "Playing billiards" 0.0084
|
||||
"130106" 5.5945 5.2725 "Boating" 0.0158
|
||||
"130107" 4.257 4.9967 "Bowling" 0.0098
|
||||
"130109" 5.2666 5.6163 "Dancing" 0.0144
|
||||
"130110" 4.1328 5.5767 "Participating in equestrian sports" 0.0054
|
||||
"130112" 5.1375 5.3017 "Fishing" 0.0328
|
||||
"130113" 5.1277 4.4822 "Playing football" 0.0075
|
||||
"130114" 5.1526 5.1615 "Golfing" 0.0337
|
||||
"130116" 5.3033 5.4277 "Hiking" 0.0162
|
||||
"130117" 4.9474 5.6306 "Playing hockey" 0.0046
|
||||
"130118" 4.6138 5.5714 "Hunting" 0.0177
|
||||
"130119" 5 5.878 "Participating in martial arts" 0.0049
|
||||
"130120" 5.2921 5.1088 "Playing racquet sports" 0.0087
|
||||
"130122" 5.2786 4.8898 "Rollerblading" 0.0065
|
||||
"130124" 4.8552 5.4258 "Running" 0.0721
|
||||
"130125" 5.7289 5.2832 "Skiing, ice skating, snowboarding" 0.0084
|
||||
"130126" 5.3031 5.3535 "Playing soccer" 0.0116
|
||||
"130127" 4.7308 5.2851 "Playing softball" 0.0067
|
||||
"130128" 4.4901 5.4879 "Using cardiovascular equipment" 0.0678
|
||||
"130129" 5.8696 5.5908 "Vehicle touring/racing" 0.0065
|
||||
"130130" 5.8128 5.4136 "Playing volleyball" 0.0058
|
||||
"130131" 4.9928 5.4046 "Walking" 0.3685
|
||||
"130132" 5.4465 5.4959 "Participating in water sports" 0.0895
|
||||
"130133" 4.8286 5.4693 "Weightlifting/strength training" 0.0689
|
||||
"130134" 4.6372 5.3806 "Working out, unspecified" 0.2212
|
||||
"130136" 4.567 5.4904 "Doing yoga" 0.0186
|
||||
"130199" 5.1362 5.4151 "Playing sports misc." 0.0416
|
||||
"130202" 4.9877 5.1101 "Watching baseball" 0.0108
|
||||
"130203" 5.5753 5.0357 "Watching basketball" 0.0063
|
||||
"130213" 5.238 5.4997 "Watching football" 0.0096
|
||||
"130216" 4.6272 5.2029 "Watching hockey" 0.0071
|
||||
"130218" 4.8914 4.4692 "Watching racquet sports" 0.0023
|
||||
"130224" 5.5379 5.3283 "Watching soccer" 0.0081
|
||||
"130227" 5.499 4.9985 "Watching volleyball" 0.0022
|
||||
"130299" 4.818 5.182 "Attending sporting events, misc." 0.0053
|
||||
"140101" 5.1801 5.7656 "Attending religious services" 0.5128
|
||||
"140102" 5.1242 5.8226 "Participation in religious practices" 0.3447
|
||||
"140103" 5.3894 5.4142 "Waiting assoc w/religious and spiritual activities" 0.0098
|
||||
"140105" 5.294 5.8076 "Religious education activities" 0.0787
|
||||
"149999" 5.4999 6 "Religious and spiritual activities, misc." 0.0029
|
||||
"150101" 4.3872 5.1186 "Computer use" 0.0465
|
||||
"150102" 4.892 5.3698 "Organizing and preparing" 0.0538
|
||||
"150103" 5.1465 5.8767 "Reading" 0.0049
|
||||
"150104" 3.9379 5.2894 "Telephone calls (except hotline counseling)" 0.0174
|
||||
"150105" 5.0888 4.8161 "Writing" 0.0026
|
||||
"150106" 5.5408 5.6845 "Fundraising" 0.0133
|
||||
"150199" 5.2515 5.4781 "Administrative and support activities, misc." 0.0196
|
||||
"150201" 5.0504 5.6601 "Food preparation, presentation, clean-up" 0.036
|
||||
"150202" 4.4875 5.4283 "Collecting and delivering clothing and other goods" 0.0101
|
||||
"150203" 5.1426 5.5682 "Providing care" 0.0195
|
||||
"150204" 5.2749 5.6544 "Teaching, leading, counseling, mentoring" 0.0525
|
||||
"150299" 4.7265 5.6233 "Social service and care activities, misc." 0.0093
|
||||
"150302" 4.833 5.3045 "Indoor and outdoor maintenance, repair, and clean-up" 0.0173
|
||||
"150401" 5.2987 5.6969 "Performing" 0.0265
|
||||
"150402" 5.037 5.5589 "Serving at volunteer events and cultural activities" 0.0194
|
||||
"150501" 4.5845 5.3972 "Attending meetings, conferences, and training" 0.0507
|
||||
"150701" 4.5999 5.2999 "Waiting associated with volunteer activities" 0.0024
|
||||
"159999" 5.2785 5.6518 "Volunteer activities, misc." 0.1119
|
||||
"160101" 4.7783 5.5471 "Telephone calls to/from family members" 0.3752
|
||||
"160102" 4.795 5.1776 "Phone calls to/from friends, neighbors" 0.2003
|
||||
"160103" 2.2221 5.5185 "Telephone calls to/from education svcs providers" 0.0032
|
||||
"160104" 3.4873 5.4081 "Telephone calls to/from salespeople" 0.0059
|
||||
"160105" 2.6467 4.8562 "Phone calls to/from prof, personal svcs providers" 0.0167
|
||||
"160106" 2.1017 5.3628 "Phone calls to/from household services providers" 0.0106
|
||||
"160108" 3.7003 5.8925 "Telephone calls to/from government officials" 0.0056
|
||||
"160199" 4.5566 5.211 "Telephone calls (to or from), misc." 0.1438
|
||||
"180101" 4.674 5.1188 "Travel for personal care" 0.0959
|
||||
"180201" 4.4686 5.0219 "Travel for housework" 0.0524
|
||||
"180202" 4.8177 5.1817 "Travel for food and drink prep" 0.0526
|
||||
"180203" 4.4063 5.4387 "Travel for int. maint, repair, and decoration" 0.0109
|
||||
"180204" 4.6292 4.7371 "Travel for ext. maint, repair, and decoration" 0.0055
|
||||
"180205" 4.7036 5.5364 "Travel for lawn, garden, and houseplants" 0.013
|
||||
"180206" 4.7082 5.0638 "Travel for care for animals (not vet care)" 0.0486
|
||||
"180207" 5.0427 5.0209 "Travel for vehicle care and maint (by self)" 0.0223
|
||||
"180208" 5.8333 6 "Travel for tool, repair, and maintenance" 0.0043
|
||||
"180209" 4.6447 5.0846 "Travel for household management" 0.2689
|
||||
"180302" 4.797 5.2995 "Travel for caring for and helping household children" 0.859
|
||||
"180303" 4.2 5.0188 "Travel for household children's education" 0.0126
|
||||
"180304" 4.1476 5.2791 "Travel for household children's health" 0.0163
|
||||
"180305" 3.8614 5.8019 "Travel for caring for household adults" 0.0206
|
||||
"180306" 4.5551 5.1211 "Travel for helping household adults" 0.1177
|
||||
"180402" 4.8915 5.2767 "Travel for helping non-household kids" 0.1991
|
||||
"180404" 3.6108 5.3335 "Travel for non-household children's health" 0.0043
|
||||
"180405" 4.352 5.2076 "Travel for caring for non-household adults" 0.015
|
||||
"180406" 4.8412 5.1668 "Travel for helping non-household adults" 0.4152
|
||||
"180501" 4.433 4.9649 "Travel for working" 2.2379
|
||||
"180502" 3.9999 4.9312 "Travel for work-related activities" 0.007
|
||||
"180503" 4.5506 5.4222 "Travel for income-generating activities" 0.0318
|
||||
"180504" 3.8844 5.2982 "Travel for job search and interviewing" 0.0322
|
||||
"180601" 4.2031 4.8203 "Travel for taking class" 0.125
|
||||
"180602" 4.9581 4.6657 "Travel for extracurricular activities (ex. Sports)" 0.0058
|
||||
"180603" 4.4433 4.6157 "Travel for research/homework" 0.0171
|
||||
"180604" 4.1596 4.7597 "Travel for registration/admin activities" 0.003
|
||||
"180701" 4.596 4.8843 "Traveling to/from the grocery store" 0.8789
|
||||
"180703" 4.7388 4.952 "Travel for purchasing food (not groceries)" 0.5882
|
||||
"180704" 4.6983 5.0044 "Travel for shopping, not groceries" 1.433
|
||||
"180705" 4.5856 5.0456 "Traveling to/from gas station" 0.1591
|
||||
"180801" 4.8568 6 "Travel for using childcare services" 0.005
|
||||
"180802" 4.3214 5.0572 "Travel for using financial svcs and banking" 0.0787
|
||||
"180804" 3.6482 5.3131 "Travel for using medical services" 0.1596
|
||||
"180805" 4.8084 4.9991 "Travel for using personal care services" 0.057
|
||||
"180806" 4.1981 4.8519 "Travel for using real estate services" 0.0163
|
||||
"180807" 3.4253 5.2574 "Travel for using veterinary services" 0.013
|
||||
"180899" 5.0215 4.9994 "Travel rel. to using prof, personal care svcs misc." 0.0055
|
||||
"180901" 4.4148 5.1697 "Travel for using household services" 0.0113
|
||||
"180902" 3.6941 5.7827 "Travel for home maintenance" 0.0028
|
||||
"180903" 4.5553 4.2484 "Travel for using pet services (not vet)" 0.0086
|
||||
"180905" 4.3643 5.0414 "Travel for vehicle maintenance" 0.0455
|
||||
"181001" 4.543 5.2496 "Travel for using government services" 0.0124
|
||||
"181002" 4.9754 5.6815 "Travel for civic obligations and participation" 0.0049
|
||||
"181101" 4.9796 5.0953 "Travel for eating and drinking" 1.4294
|
||||
"181201" 4.8021 5.1563 "Travel for socializing" 1.1308
|
||||
"181202" 5.1019 5.1226 "Trvl related to attending or hosting social events" 0.1871
|
||||
"181204" 5.0067 5.073 "Travel for arts and entertainment" 0.1724
|
||||
"181205" 5.1206 5.0307 "Travel as a form of entertainment" 0.0582
|
||||
"181206" 4.7928 5.0097 "Travel for relaxing and leisure" 0.3648
|
||||
"181301" 4.8777 5.071 "Travel for sports, exercise, or recreation" 0.5078
|
||||
"181302" 4.8429 5.0556 "Travel for attending sporting events" 0.0643
|
||||
"181401" 5.0299 5.5472 "Travel for religious practices" 0.5638
|
||||
"181501" 4.8462 5.2251 "Travel for volunteering" 0.2669
|
||||
"181599" 5.0713 5.285 "Travel for volunteer activities, misc." 0.0084
|
||||
"181601" 4.356 4.9264 "Travel for phone calls" 0.0229
|
||||
"181801" 4.7595 4.3052 "Security procedures related to traveling" 0.009
|
||||
"189999" 4.6894 5.1014 "Traveling, misc." 0.2231
|
||||
"500101" 4.5424 5.223 "Insufficient detail in verbatim" 0.5265
|
||||
"500103" 4.907 5.2302 "Missing travel or destination" 0.0964
|
||||
"500104" 4.4997 5.2727 "Recorded simultaneous activities incorrectly" 0.0315
|
||||
"500107" 4.6635 5.3266 "Unable to code activity at 1st tier" 0.0125
|
||||
|
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Activities, Happiness, and Meaning</title>
|
||||
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
|
||||
<div id="main-wrapper">
|
||||
<h1>Meaningfulness with Happiness</h1>
|
||||
<div id="chart"></div>
|
||||
</div>
|
||||
|
||||
<script src="js/d3.v7.min.js"></script>
|
||||
<script src="js/bubbleplot.js"></script>
|
||||
@@ -0,0 +1,139 @@
|
||||
// Dimensions of chart.
|
||||
let margin = { top: 20, right: 30, bottom: 50, left: 55 },
|
||||
// width = parseInt(d3.select('#chart').style('width'), 10) - margin.left - margin.right,
|
||||
width = 600 - margin.left - margin.right,
|
||||
// height = width/.8 - margin.top - margin.bottom;
|
||||
height = width - margin.top - margin.bottom;
|
||||
|
||||
let svg = d3.select("#chart").append("svg")
|
||||
.attr("width", width + margin.left + margin.right)
|
||||
.attr("height", height + margin.top + margin.bottom)
|
||||
.append("g")
|
||||
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
||||
|
||||
// Scales: x and y and r
|
||||
let x = d3.scaleLinear()
|
||||
// .domain([3, 6])
|
||||
.domain([4, 6])
|
||||
.range([0, width]);
|
||||
let y = d3.scaleLinear()
|
||||
// .domain([2, 6])
|
||||
.domain([3, 6])
|
||||
.range([height, 0]);
|
||||
let r = d3.scaleSqrt()
|
||||
.domain([0, 10])
|
||||
.range([0, 25]);
|
||||
|
||||
// Point color
|
||||
let ptcolor = "#5a8171";
|
||||
|
||||
|
||||
|
||||
// x-axis
|
||||
let xAxis = d3.axisBottom(x)
|
||||
// .ticks(7)
|
||||
.ticks(4)
|
||||
.tickSize(-height-8)
|
||||
.tickPadding(5);
|
||||
let xAxisEl = svg.append("g")
|
||||
.attr("class", "x axis bottom")
|
||||
.attr("transform", "translate(0,"+(height+8)+")");
|
||||
xAxisEl.append("text")
|
||||
.attr("class", "axistitle")
|
||||
.attr("text-anchor", "start")
|
||||
.attr("x", 0).attr("y", 0)
|
||||
// .attr("dx", "-.25em")
|
||||
.attr("dx", "-.8em")
|
||||
.attr("dy", "2.5em")
|
||||
.text("Meaningfulness Score Average");
|
||||
xAxisEl.call(xAxis);
|
||||
|
||||
|
||||
// y-axis
|
||||
let yAxis = d3.axisLeft(y)
|
||||
// .ticks(7)
|
||||
.ticks(5)
|
||||
.tickSize(-width-8)
|
||||
.tickPadding(5);
|
||||
let yAxisEl = svg.append("g")
|
||||
.attr("class", "y axis left")
|
||||
.attr("transform", "translate("+(-8)+",0)");
|
||||
yAxisEl.append("text")
|
||||
.attr("class", "axistitle")
|
||||
.attr("x", 0).attr("y", 0)
|
||||
.attr("dx", "4px")
|
||||
// .attr("dy", "-2em")
|
||||
.attr("dy", "-3em")
|
||||
.style("text-anchor", "end")
|
||||
.attr("transform", "rotate(-90)")
|
||||
.text("Happiness Score Average");
|
||||
yAxisEl.call(yAxis);
|
||||
|
||||
|
||||
let activities;
|
||||
let circle, labeltext;
|
||||
|
||||
// Load data
|
||||
const activitiesData = Promise.all([
|
||||
d3.tsv("data/act_means.tsv", d3.autoType)
|
||||
]);
|
||||
activitiesData.then(function(data) {
|
||||
|
||||
activities = data[0].sort((a, b) => b.relwt - a.relwt);
|
||||
console.log(activities);
|
||||
|
||||
// Initialize chart now that data is loaded.
|
||||
initChart();
|
||||
});
|
||||
|
||||
|
||||
function initChart() {
|
||||
// Circle for each node.
|
||||
circle = svg.append("g")
|
||||
.selectAll("circle")
|
||||
.data(activities)
|
||||
.join("circle")
|
||||
.attr("id", d => "circle"+d.activity)
|
||||
.attr("cx", d => x(d.meaning_mean))
|
||||
.attr("cy", d => y(d.schappy_mean))
|
||||
.attr("fill", ptcolor)
|
||||
.attr("fill-opacity", .75)
|
||||
.attr("r", d => r(d.relwt))
|
||||
.attr("stroke", "#fff")
|
||||
.attr("stroke-width", ".5px");
|
||||
|
||||
setInteraction();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function setInteraction() {
|
||||
|
||||
// Create label
|
||||
labeltext = svg.append("text")
|
||||
.attr("text-anchor", "middle");
|
||||
|
||||
// Hover events
|
||||
circle.on("mouseover", function(e,d) {
|
||||
d3.selectAll(".current").classed("current", false);
|
||||
d3.select(this).classed("current", true);
|
||||
|
||||
let curract = d3.select(this).datum();
|
||||
|
||||
labeltext.text(curract.descrip)
|
||||
.attr("x", x(curract.meaning_mean))
|
||||
.attr("y", y(curract.schappy_mean)-r(curract.relwt)-5);
|
||||
})
|
||||
// .on("mousemove", function(e,d) {
|
||||
// d3.select(this).classed("current", true);
|
||||
// })
|
||||
.on('mouseout', function(d) {
|
||||
d3.select(this).classed('current', false);
|
||||
labeltext.text('');
|
||||
}); // @end mouseover
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
// https://d3js.org v7.4.0 Copyright 2010-2022 Mike Bostock
|
||||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";function n(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function e(t){let e=t,r=t,i=t;function o(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<0?e=r+1:o=r}while(e<o)}return e}return 2!==t.length&&(e=(n,e)=>t(n)-e,r=n,i=(e,r)=>n(t(e),r)),{left:o,center:function(t,n,r=0,i=t.length){const a=o(t,n,r,i-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<=0?e=r+1:o=r}while(e<o)}return e}}}function r(t){return null===t?NaN:+t}const i=e(n),o=i.right,a=i.left,u=e(r).center;var c=o;function f(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function s(t){return 0|t.length}function l(t){return!(t>0)}function h(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function d(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function p(t,n){const e=d(t,n);return e?Math.sqrt(e):e}function g(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class y{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}class InternMap extends Map{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(v(this,t))}has(t){return super.has(v(this,t))}set(t,n){return super.set(_(this,t),n)}delete(t){return super.delete(b(this,t))}}class InternSet extends Set{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(v(this,t))}add(t){return super.add(_(this,t))}delete(t){return super.delete(b(this,t))}}function v({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function _({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function b({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function m(t){return null!==t&&"object"==typeof t?t.valueOf():t}function x(t){return t}function w(t,...n){return k(t,x,x,n)}function M(t,...n){return k(t,Array.from,x,n)}function A(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function T(t,n,...e){return k(t,x,n,e)}function S(t,n,...e){return k(t,Array.from,n,e)}function E(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function k(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new InternMap,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function N(t,n){return Array.from(n,(n=>t[n]))}function C(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&2!==e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=z(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>z(e[t],e[n])))),N(t,r)}return t.sort(P(e))}function P(t=n){if(t===n)return z;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function z(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}var D=Array.prototype.slice;function R(t){return()=>t}var F=Math.sqrt(50),q=Math.sqrt(10),O=Math.sqrt(2);function U(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=I(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function I(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=F?10:o>=q?5:o>=O?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=F?10:o>=q?5:o>=O?2:1)}funLine truncated
|
||||
@@ -0,0 +1,77 @@
|
||||
/* #Reset & Basics (Inspired by E. Meyers)
|
||||
================================================== */
|
||||
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline; }
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
||||
display: block; }
|
||||
body {
|
||||
line-height: 1; }
|
||||
ol, ul {
|
||||
list-style: none; }
|
||||
blockquote, q {
|
||||
quotes: none; }
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none; }
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0; }
|
||||
|
||||
|
||||
/* Main layout
|
||||
============================ */
|
||||
|
||||
#main-wrapper {
|
||||
width: 600px;
|
||||
margin: 40px auto;
|
||||
font-family: Georgia, serif;
|
||||
}
|
||||
h1 {
|
||||
font-family: Georgia, serif;
|
||||
font-size: 1.45em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/* Chart
|
||||
============================ */
|
||||
|
||||
#chart {
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.axis text {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: .8rem;
|
||||
}
|
||||
.axis .axistitle {
|
||||
text-transform: uppercase;
|
||||
fill: #333;
|
||||
font-size: .8rem;
|
||||
}
|
||||
.axis path,
|
||||
.axis line {
|
||||
fill: none;
|
||||
stroke: #ccc;
|
||||
stroke-width: 1px;
|
||||
shape-rendering: crispEdges;
|
||||
}
|
||||
.x.axis path, .y.axis path {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/* Interaction
|
||||
============================ */
|
||||
|
||||
circle.current {
|
||||
stroke: #000;
|
||||
stroke-width: 3px;
|
||||
}
|
||||
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
Year,Beef,Chicken
|
||||
1909,51.1,10.4
|
||||
1910,48.5,11.0
|
||||
1911,47.2,11.1
|
||||
1912,44.5,10.6
|
||||
1913,43.6,10.3
|
||||
1914,42.7,10.3
|
||||
1915,38.8,10.2
|
||||
1916,40.6,9.6
|
||||
1917,44.6,9.4
|
||||
1918,47.2,9.4
|
||||
1919,42.4,10.1
|
||||
1920,40.7,9.7
|
||||
1921,38.2,9.5
|
||||
1922,40.7,10.1
|
||||
1923,41.1,10.4
|
||||
1924,41.0,9.7
|
||||
1925,41.0,10.1
|
||||
1926,41.5,10.1
|
||||
1927,37.5,10.8
|
||||
1928,33.6,10.4
|
||||
1929,34.2,10.1
|
||||
1930,33.7,11.1
|
||||
1931,33.4,10.0
|
||||
1932,32.1,10.2
|
||||
1933,35.5,10.4
|
||||
1934,43.9,9.6
|
||||
1935,36.6,9.3
|
||||
1936,41.6,9.6
|
||||
1937,38.0,9.7
|
||||
1938,37.4,9.0
|
||||
1939,37.6,10.0
|
||||
1940,37.8,10.0
|
||||
1941,42.6,11.0
|
||||
1942,45.9,12.7
|
||||
1943,43.0,16.0
|
||||
1944,46.6,15.3
|
||||
1945,48.0,15.1
|
||||
1946,44.2,13.9
|
||||
1947,49.2,12.5
|
||||
1948,44.2,12.6
|
||||
1949,44.7,13.5
|
||||
1950,44.6,14.3
|
||||
1951,41.2,15.0
|
||||
1952,43.9,15.2
|
||||
1953,54.5,15.1
|
||||
1954,56.0,15.6
|
||||
1955,57.2,14.7
|
||||
1956,59.5,16.8
|
||||
1957,58.7,17.5
|
||||
1958,55.9,19.2
|
||||
1959,56.6,19.7
|
||||
1960,59.1,19.1
|
||||
1961,61.0,20.5
|
||||
1962,61.7,20.5
|
||||
1963,65.4,21.0
|
||||
1964,70.6,21.3
|
||||
1965,70.4,22.8
|
||||
1966,73.7,24.5
|
||||
1967,75.3,25.1
|
||||
1968,77.3,25.2
|
||||
1969,77.8,26.3
|
||||
1970,79.8,27.4
|
||||
1971,79.2,27.4
|
||||
1972,80.5,28.3
|
||||
1973,76.0,27.1
|
||||
1974,80.7,27.0
|
||||
1975,83.2,26.4
|
||||
1976,88.8,28.5
|
||||
1977,86.3,29.0
|
||||
1978,82.2,30.4
|
||||
1979,73.5,32.8
|
||||
1980,72.1,32.7
|
||||
1981,72.8,33.7
|
||||
1982,72.5,33.9
|
||||
1983,74.1,34.0
|
||||
1984,73.8,35.3
|
||||
1985,74.6,36.4
|
||||
1986,74.4,37.2
|
||||
1987,69.5,39.4
|
||||
1988,68.6,39.6
|
||||
1989,65.1,40.5
|
||||
1990,63.9,42.5
|
||||
1991,62.9,44.2
|
||||
1992,62.4,46.5
|
||||
1993,61.0,48.1
|
||||
1994,62.9,48.7
|
||||
1995,63.5,48.2
|
||||
1996,64.0,48.6
|
||||
1997,62.6,50.0
|
||||
1998,63.6,50.4
|
||||
1999,64.3,53.6
|
||||
2000,64.5,54.2
|
||||
2001,63.1,54.0
|
||||
2002,64.5,56.8
|
||||
2003,61.9,57.6
|
||||
2004,63.0,59.3
|
||||
2005,62.5,60.5
|
||||
2006,62.8,60.9
|
||||
2007,62.1,59.9
|
||||
2008,59.4,58.7
|
||||
2009,58.1,56.1
|
||||
2010,56.7,58.0
|
||||
2011,54.4,58.4
|
||||
2012,54.5,56.7
|
||||
2013,53.6,57.7
|
||||
2014,51.5,58.8
|
||||
2015,51.4,62.6
|
||||
2016,52.9,63.2
|
||||
2017,54.3,64.1
|
||||
|
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Beef vs. Chicken</title>
|
||||
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
|
||||
<div id="main-wrapper">
|
||||
<h1>Beef vs. Chicken</h1>
|
||||
<div id="chart"></div>
|
||||
</div>
|
||||
|
||||
<script src="js/d3.v7.min.js"></script>
|
||||
<script src="js/differencechart.js"></script>
|
||||
@@ -0,0 +1,2 @@
|
||||
// https://d3js.org v7.4.0 Copyright 2010-2022 Mike Bostock
|
||||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";function n(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function e(t){let e=t,r=t,i=t;function o(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<0?e=r+1:o=r}while(e<o)}return e}return 2!==t.length&&(e=(n,e)=>t(n)-e,r=n,i=(e,r)=>n(t(e),r)),{left:o,center:function(t,n,r=0,i=t.length){const a=o(t,n,r,i-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<=0?e=r+1:o=r}while(e<o)}return e}}}function r(t){return null===t?NaN:+t}const i=e(n),o=i.right,a=i.left,u=e(r).center;var c=o;function f(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function s(t){return 0|t.length}function l(t){return!(t>0)}function h(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function d(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function p(t,n){const e=d(t,n);return e?Math.sqrt(e):e}function g(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class y{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}class InternMap extends Map{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(v(this,t))}has(t){return super.has(v(this,t))}set(t,n){return super.set(_(this,t),n)}delete(t){return super.delete(b(this,t))}}class InternSet extends Set{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(v(this,t))}add(t){return super.add(_(this,t))}delete(t){return super.delete(b(this,t))}}function v({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function _({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function b({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function m(t){return null!==t&&"object"==typeof t?t.valueOf():t}function x(t){return t}function w(t,...n){return k(t,x,x,n)}function M(t,...n){return k(t,Array.from,x,n)}function A(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function T(t,n,...e){return k(t,x,n,e)}function S(t,n,...e){return k(t,Array.from,n,e)}function E(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function k(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new InternMap,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function N(t,n){return Array.from(n,(n=>t[n]))}function C(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&2!==e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=z(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>z(e[t],e[n])))),N(t,r)}return t.sort(P(e))}function P(t=n){if(t===n)return z;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function z(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}var D=Array.prototype.slice;function R(t){return()=>t}var F=Math.sqrt(50),q=Math.sqrt(10),O=Math.sqrt(2);function U(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=I(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function I(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=F?10:o>=q?5:o>=O?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=F?10:o>=q?5:o>=O?2:1)}funLine truncated
|
||||
@@ -0,0 +1,156 @@
|
||||
// Dimensions of chart.
|
||||
let margin = { top: 30, right: 10, bottom: 30, left: 45 },
|
||||
// width = parseInt(d3.select('#chart').style('width'), 10) - margin.left - margin.right,
|
||||
width = 600 - margin.left - margin.right,
|
||||
height = width*.8 - margin.top - margin.bottom;
|
||||
|
||||
let svg = d3.select("#chart").append("svg")
|
||||
.attr("width", width + margin.left + margin.right)
|
||||
.attr("height", height + margin.top + margin.bottom)
|
||||
.append("g")
|
||||
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
||||
|
||||
|
||||
// Scales: x and y
|
||||
let x = d3.scaleLinear()
|
||||
.domain([1909, 2017])
|
||||
.range([0, width]);
|
||||
let y = d3.scaleLinear()
|
||||
.domain([0, 100])
|
||||
.range([height, 0]);
|
||||
|
||||
|
||||
// Geometries
|
||||
let area = d3.area()
|
||||
.x(d => x(d.year))
|
||||
.y1(d => y(d.amt));
|
||||
let line = d3.line()
|
||||
.x(d => x(d.year))
|
||||
.y(d => y(d.amt));
|
||||
|
||||
|
||||
let xAxis, yAxis, xAxisEl, yAxisEL;
|
||||
|
||||
let meats, beef, chicken;
|
||||
|
||||
|
||||
// Load data
|
||||
const meatData = Promise.all([
|
||||
d3.csv("data/beef-vs-chicken-difference.csv", d3.autoType)
|
||||
]);
|
||||
meatData.then(function(data) {
|
||||
|
||||
meats = data[0];
|
||||
console.log(meats);
|
||||
|
||||
svg.datum(meats);
|
||||
|
||||
// Initialize chart now that data is loaded.
|
||||
initChart();
|
||||
});
|
||||
|
||||
|
||||
|
||||
function initChart() {
|
||||
|
||||
// x-axis
|
||||
xAxis = d3.axisBottom(x)
|
||||
.ticks(4)
|
||||
.tickFormat(d => d)
|
||||
.tickSize(-height-8)
|
||||
.tickPadding(5);
|
||||
xAxisEl = svg.append("g")
|
||||
.attr("class", "x axis bottom")
|
||||
.attr("transform", "translate(0,"+(height+8)+")");
|
||||
xAxisEl.call(xAxis);
|
||||
|
||||
// y-axis
|
||||
yAxis = d3.axisLeft(y)
|
||||
// .ticks(7)
|
||||
.ticks(5)
|
||||
.tickSize(-width-8)
|
||||
.tickPadding(5);
|
||||
yAxisEl = svg.append("g")
|
||||
.attr("class", "y axis left")
|
||||
.attr("transform", "translate("+(-8)+",0)");
|
||||
yAxisEl.append("text")
|
||||
.attr("class", "axistitle")
|
||||
.attr("x", 0).attr("y", 0)
|
||||
.attr("dx", "-2.25em")
|
||||
.attr("dy", "-1.5em")
|
||||
.style("text-anchor", "start")
|
||||
.text("Pounds per capita");
|
||||
yAxisEl.call(yAxis);
|
||||
|
||||
// Area clipping paths
|
||||
svg.append("clipPath")
|
||||
.attr("id", "clip-above")
|
||||
.append("path")
|
||||
.attr("d", d3.area()
|
||||
.x(d => x(d.Year))
|
||||
.y0(0)
|
||||
.y1(d => y(d.Chicken)));
|
||||
svg.append("clipPath")
|
||||
.attr("id", "clip-below")
|
||||
.append("path")
|
||||
.attr("d", d3.area()
|
||||
.x(d => x(d.Year))
|
||||
.y0(height)
|
||||
.y1(d => y(d.Chicken)));
|
||||
|
||||
// Area differences
|
||||
svg.append("path")
|
||||
.attr("class", "area above")
|
||||
.attr("clip-path", "url(#clip-above)")
|
||||
.attr("fill", "#fdad94")
|
||||
.attr("d", d3.area()
|
||||
.x(d => x(d.Year)).y0(height).y1(d => y(d.Beef)));
|
||||
svg.append("path")
|
||||
.attr("class", "area below")
|
||||
.attr("fill", "#f9e59f")
|
||||
.attr("clip-path", "url(#clip-below)")
|
||||
.attr("d", d3.area()
|
||||
.x(d => x(d.Year)).y0(0).y1(d => y(d.Beef)));
|
||||
|
||||
// Lines
|
||||
svg.append("path")
|
||||
.attr("class", "line chicken")
|
||||
.attr("fill", "none")
|
||||
.attr("stroke", "#bf980d")
|
||||
.attr("stroke-width", "2px")
|
||||
.attr("d", d3.line()
|
||||
.x(d => x(d.Year))
|
||||
.y(d => y(d.Chicken)));
|
||||
svg.append("path")
|
||||
.attr("class", "line beef")
|
||||
.attr("fill", "none")
|
||||
.attr("stroke", "#fb470e")
|
||||
.attr("stroke-width", "2px")
|
||||
.attr("d", d3.line()
|
||||
.x(d => x(d.Year))
|
||||
.y(d => y(d.Beef)));
|
||||
|
||||
|
||||
setAnnotation();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function setAnnotation() {
|
||||
svg.append("text")
|
||||
.attr("class", "mainlab")
|
||||
.attr("fill", "#fb470e")
|
||||
.attr("x", x(1962))
|
||||
.attr("y", y(40))
|
||||
.text("BEEF");
|
||||
|
||||
svg.append("text")
|
||||
.attr("text-anchor", "end")
|
||||
.attr("class", "mainlab")
|
||||
.attr("fill", "#bf980d")
|
||||
.attr("x", x(2017))
|
||||
.attr("y", y(65))
|
||||
.text("CHICKEN");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* #Reset & Basics (Inspired by E. Meyers)
|
||||
================================================== */
|
||||
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline; }
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
||||
display: block; }
|
||||
body {
|
||||
line-height: 1; }
|
||||
ol, ul {
|
||||
list-style: none; }
|
||||
blockquote, q {
|
||||
quotes: none; }
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none; }
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0; }
|
||||
|
||||
|
||||
/* Main layout
|
||||
============================ */
|
||||
|
||||
#main-wrapper {
|
||||
width: 600px;
|
||||
margin: 40px auto;
|
||||
}
|
||||
h1 {
|
||||
font-family: Georgia, serif;
|
||||
font-size: 1.45em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/* Chart
|
||||
============================ */
|
||||
|
||||
#chart {
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
}
|
||||
text {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: .8rem;
|
||||
}
|
||||
text.mainlab {
|
||||
font-weight: bold;
|
||||
}
|
||||
.axis .axistitle {
|
||||
text-transform: uppercase;
|
||||
fill: #333;
|
||||
font-size: .8rem;
|
||||
}
|
||||
.axis path,
|
||||
.axis line {
|
||||
fill: none;
|
||||
stroke: #ccc;
|
||||
stroke-width: 1px;
|
||||
shape-rendering: crispEdges;
|
||||
}
|
||||
.x.axis path, .y.axis path {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,292 @@
|
||||
"activity" "schappy_mean" "meaning_mean" "descrip" "relwt"
|
||||
"010301" 3.65 5.2875 "Health-related self care" 0.3437
|
||||
"010399" 0.4441 4.332 "Self care, misc." 0.0022
|
||||
"020101" 4.3016 5.0383 "Interior cleaning" 1.362
|
||||
"020102" 4.1979 4.866 "Laundry" 0.806
|
||||
"020103" 4.8934 5.4284 "Sewing, repairing, and maintaining textiles" 0.076
|
||||
"020104" 4.5711 4.8468 "Storing interior household items, inc. food" 0.2002
|
||||
"020201" 4.6729 5.1604 "Food and drink prep." 3.8685
|
||||
"020202" 4.9016 5.5208 "Food presentation" 0.0659
|
||||
"020203" 4.3252 4.9249 "Kitchen and food clean-up" 0.9425
|
||||
"020301" 4.5569 5.2724 "Interior arrangement, decoration, and repairs" 0.1527
|
||||
"020302" 4.7587 4.8901 "Building and repairing furniture" 0.0073
|
||||
"020303" 4.2926 5.29 "Heating and cooling" 0.0446
|
||||
"020401" 4.1507 5.0967 "Exterior cleaning" 0.1179
|
||||
"020402" 4.8953 5.3774 "Exterior repair, improvements, and decoration" 0.0696
|
||||
"020501" 4.6695 5.2066 "Lawn, garden, and houseplant care" 0.6958
|
||||
"020502" 4.0334 5.083 "Ponds, pools, and hot tubs" 0.0143
|
||||
"020602" 4.591 5.3077 "Care for animals and pets" 0.6464
|
||||
"020603" 4.9233 5.2797 "Walking, exercising, playing with animals" 0.4182
|
||||
"020699" 4.4816 4.6297 "Pet and animal care, misc." 0.0032
|
||||
"020701" 4.3308 5.1412 "Vehicle repair and maintenance (by self)" 0.14
|
||||
"020801" 4.3562 5.1824 "App, tool, toy set-up, repair, and maint (by self)" 0.0589
|
||||
"020901" 3.715 4.999 "Financial management" 0.1445
|
||||
"020902" 4.386 4.9614 "Household and personal organization" 0.6869
|
||||
"020903" 4.3574 4.8634 "Household and personal mail and messages (except e-mail)" 0.1483
|
||||
"020904" 4.1977 4.3381 "Household and personal e-mail and messages" 0.2182
|
||||
"020905" 4.0463 4.9778 "Home security" 0.023
|
||||
"029999" 4.4219 4.895 "Household activities, misc." 0.0023
|
||||
"030101" 4.8037 5.4819 "Care for household children" 1.7066
|
||||
"030102" 5.3559 5.7285 "Reading to/with household children" 0.1706
|
||||
"030103" 5.5047 5.7429 "Playing with household children" 0.5338
|
||||
"030104" 5.4589 5.6239 "Arts and crafts with household children" 0.0131
|
||||
"030105" 5.3366 5.712 "Playing sports with household children" 0.0246
|
||||
"030106" 4.997 5.5712 "Talking with/listening to household children" 0.1503
|
||||
"030108" 4.4771 5.0912 "Organization for household children" 0.0445
|
||||
"030109" 5.0333 5.5065 "Looking after household children" 0.1501
|
||||
"030110" 5.0778 5.615 "Attending household children's events" 0.0925
|
||||
"030111" 4.7433 5.3825 "Waiting for/with household children" 0.0482
|
||||
"030112" 4.7327 5.3525 "Picking up/dropping off household children" 0.3373
|
||||
"030199" 5.0626 5.4164 "Caring for and helping household children, misc." 0.0058
|
||||
"030201" 4.5065 5.5892 "Homework (household children)" 0.1711
|
||||
"030202" 4.062 5.6243 "Meetings and school conferences (household children)" 0.0058
|
||||
"030203" 5.0198 5.808 "Home schooling of household children" 0.0062
|
||||
"030299" 3.4516 5.3227 "Activities related to household child's education, misc." 0.0037
|
||||
"030301" 3.2966 5.5604 "Providing medical care to household children" 0.0218
|
||||
"030302" 3.484 5.545 "Obtaining medical care for household children" 0.0127
|
||||
"030303" 2.7979 5.6905 "Waiting associated with household children's health" 0.0101
|
||||
"030401" 4.3313 5.5832 "Care for household adults" 0.0634
|
||||
"030402" 4.6669 5.0003 "Looking after household adult (as a primary activity)" 0.0043
|
||||
"030403" 3.7147 5.525 "Providing medical care to household adult" 0.021
|
||||
"030404" 4.71 5.7405 "Obtaining medical and care services for household adult" 0.0075
|
||||
"030405" 4.234 5.476 "Waiting associated with caring for household adults" 0.006
|
||||
"030501" 4.3418 5.0822 "Helping household adults" 0.0088
|
||||
"030502" 3.9261 5.5183 "Organization and planning for household adults" 0.0032
|
||||
"030503" 4.6838 5.0713 "Picking up/dropping off household adult" 0.0368
|
||||
"030504" 4.8728 5.4733 "Waiting associated with helping household adults" 0.0247
|
||||
"030599" 4.7353 5.1179 "Helping household adults, misc." 0.0041
|
||||
"040101" 5.3144 5.6892 "Care for non-household children" 0.0835
|
||||
"040102" 5.632 5.8949 "Reading to/with non-household children" 0.0091
|
||||
"040103" 5.7316 5.8642 "Playing with non-household children" 0.116
|
||||
"040105" 4.7162 6 "Playing sports with non-household children" 0.005
|
||||
"040106" 5.632 5.8326 "Talking with/listening to non-household children" 0.0251
|
||||
"040108" 4.6278 5.5581 "Organization and planning for non-household children" 0.0052
|
||||
"040109" 5.3345 5.8355 "Looking after non-household children (as primary activity)" 0.033
|
||||
"040110" 5.5768 5.7883 "Attending non-household children's events" 0.0165
|
||||
"040111" 5.1291 5.322 "Waiting for/with non-household children" 0.0074
|
||||
"040112" 5.0798 5.5207 "Dropping off/picking up non-household children" 0.0691
|
||||
"040199" 5.5774 5.7106 "Caring for and helping non-household children, misc." 0.0054
|
||||
"040201" 4.8287 5.8439 "Homework (non-household children)" 0.0077
|
||||
"040401" 4.5175 5.6303 "Care for non-household adults" 0.0244
|
||||
"040402" 3.6183 5.4763 "Looking after non-household adult" 0.005
|
||||
"040403" 4.3324 5.7824 "Providing medical care to non-household adult" 0.0083
|
||||
"040404" 3.697 5.7815 "Obtaining medical and care svcs for non-household adult" 0.0028
|
||||
"040405" 3.8136 5.5421 "Waiting associated with caring for non-household adults" 0.0045
|
||||
"040501" 4.7363 5.3113 "Hswrk, cooking, and shopping asst, non-household adults" 0.0447
|
||||
"040502" 4.6688 5.368 "House and lawn maint and repair asst, non-household adults" 0.0436
|
||||
"040503" 5.3119 4.9995 "Animal and pet care assistance for non-household adults" 0.0134
|
||||
"040504" 4.5605 5.2475 "Vehicle/appliance maint/repair asst, non-household adults" 0.0201
|
||||
"040505" 4.4638 4.9507 "Financial mgmt asst for non-household adults" 0.0049
|
||||
"040506" 4.1688 5.3376 "household mgmt and paperwork asst, non-household adults" 0.0255
|
||||
"040507" 4.9319 5.3192 "Picking up/dropping off non-household adult" 0.1284
|
||||
"040508" 4.2182 5.2695 "Waiting associated with helping non-household adults" 0.023
|
||||
"040599" 4.3443 5.2868 "Helping non-household adults, misc." 0.015
|
||||
"050101" 4.2106 5.0372 "Work, main job" 3.8671
|
||||
"050102" 4.2169 5.0135 "Work, other job(s)" 0.1346
|
||||
"050104" 4.1585 4.952 "Waiting associated with working" 0.0258
|
||||
"050199" 3.502 3.8063 "Working, misc." 0.0012
|
||||
"050201" 4.8683 4.8224 "Socializing, relaxing, and leisure as part of job" 0.0028
|
||||
"050202" 4.6143 4.9853 "Eating and drinking as part of job" 0.0178
|
||||
"050301" 5.1982 5.486 "Income-generating hobbies, crafts, and food" 0.0079
|
||||
"050303" 4.7095 4.9767 "Income-generating services" 0.0307
|
||||
"050304" 3.7731 5.3123 "Income-generating rental property activities" 0.0053
|
||||
"050399" 4.5872 5.2503 "Other income-generating activities, misc." 0.0391
|
||||
"050401" 3.4136 5.4454 "Job search activities" 0.1018
|
||||
"050403" 4.4473 5.6315 "Job interviewing" 0.0046
|
||||
"060101" 4.0938 4.9396 "Taking class for degree, certification, or lic" 0.1708
|
||||
"060102" 4.8102 5.4599 "Taking class for personal interest" 0.0199
|
||||
"060103" 3.7852 5.4278 "Waiting associated with taking classes" 0.005
|
||||
"060201" 5.3468 5.7823 "Extracurricular club activities" 0.0028
|
||||
"060202" 4.7063 5.0467 "Extracurricular music and performance activities" 0.0049
|
||||
"060299" 4.8569 3.7138 "Education-related extracurricular activities, misc." 0.0017
|
||||
"060301" 3.3418 4.9021 "Homework for class, for degree" 0.2883
|
||||
"060302" 4.9457 5.6787 "Homework for class, for personal interest" 0.0067
|
||||
"060399" 3.0733 4.7988 "Research/homework misc." 0.0048
|
||||
"060401" 5.1 5.8001 "Admin activities: class for degree, cert, or lic" 0.0048
|
||||
"069999" 3.8977 5.3269 "Education, misc." 0.0103
|
||||
"070101" 4.3286 4.8367 "Grocery shopping" 0.5658
|
||||
"070102" 4.2173 4.872 "Purchasing gas" 0.0943
|
||||
"070103" 4.6715 4.8424 "Purchasing food (not groceries)" 0.3922
|
||||
"070104" 4.6217 4.9111 "Shopping" 1.0884
|
||||
"070105" 3.8775 5.1629 "Waiting associated with shopping" 0.0118
|
||||
"070201" 4.6118 4.9319 "Comparison shopping" 0.0037
|
||||
"080101" 5.0985 5.5574 "Using paid childcare services" 0.0073
|
||||
"080201" 4.2378 4.9952 "Banking" 0.0579
|
||||
"080202" 4.6522 5.3043 "Using other financial services" 0.0055
|
||||
"080203" 4.5258 5.3144 "Waiting associated w/banking/financial services" 0.0023
|
||||
"080401" 3.5839 5.4735 "Using health and care services outside the home" 0.1335
|
||||
"080402" 3.5935 4.8952 "Using in-home health and care services" 0.0068
|
||||
"080403" 3.3676 5.2215 "Waiting associated with medical services" 0.031
|
||||
"080501" 4.8617 5.0354 "Using personal care services" 0.0583
|
||||
"080502" 4.809 3.6661 "Waiting associated w/personal care services" 0.0025
|
||||
"080601" 3.9619 5.0571 "Activities rel. to purchasing/selling real estate" 0.0125
|
||||
"080701" 3.0977 5.7036 "Using veterinary services" 0.0085
|
||||
"080702" 4.4371 5.4764 "Waiting associated with veterinary services" 0.003
|
||||
"089999" 4.8267 5.1165 "Professional and personal services, misc." 0.0083
|
||||
"090103" 4.9078 5.18 "Using clothing repair and cleaning services" 0.0066
|
||||
"090201" 4.0885 5.0779 "Using home maint/repair/décor/construction svcs" 0.0121
|
||||
"090202" 4.866 5.2007 "Wtg assoc w/ home main/repair/décor/constr" 0.0058
|
||||
"090301" 4.139 4.4996 "Using pet services" 0.0043
|
||||
"090401" 5.0353 5.5002 "Using lawn and garden services" 0.0034
|
||||
"090501" 3.5476 4.8717 "Using vehicle maintenance or repair services" 0.021
|
||||
"090502" 4.4548 4.9964 "Waiting assoc with vehicle main. or repair svcs" 0.0087
|
||||
"100102" 4.036 5.3569 "Using social services" 0.0034
|
||||
"100103" 3.6129 5.5428 "Obtaining licenses and paying fines, fees, taxes" 0.0071
|
||||
"100201" 3.8247 5.8242 "Civic obligations and participation" 0.0055
|
||||
"100304" 4.2609 4.9115 "Waiting associated with using government services" 0.0028
|
||||
"110101" 4.8524 5.1731 "Eating and drinking" 10
|
||||
"110201" 4.6021 4.9123 "Waiting associated w/eating and drinking" 0.0332
|
||||
"120101" 5.0809 5.424 "Socializing and communicating" 2.5822
|
||||
"120201" 5.4271 5.486 "Attending or hosting parties/receptions/ceremonies" 0.164
|
||||
"120202" 4.4307 5.3018 "Attending meetings for personal interest (not volunteering)" 0.0262
|
||||
"120301" 4.6856 5.1863 "Relaxing, thinking" 1.0886
|
||||
"120302" 4.5497 5.0903 "Tobacco and drug use" 0.0602
|
||||
"120303" 4.634 4.7545 "Television and movies" 5.058
|
||||
"120304" 4.6446 5.4465 "Television (religious)" 0.0193
|
||||
"120305" 4.5594 5.1203 "Listening to the radio" 0.0842
|
||||
"120306" 4.9839 5.1187 "Listening to/playing music" 0.112
|
||||
"120307" 4.9215 4.6528 "Playing games" 0.4886
|
||||
"120308" 4.274 4.4493 "Computer use for leisure (exc. Games)" 0.5267
|
||||
"120309" 4.9311 5.2819 "Arts and crafts as a hobby" 0.0832
|
||||
"120311" 4.9605 5.5621 "Hobbies, except arts and crafts and collecting" 0.0094
|
||||
"120312" 4.5865 4.8958 "Reading for personal interest" 1.1138
|
||||
"120313" 4.8226 5.2921 "Writing for personal interest" 0.0148
|
||||
"120399" 5.3157 5.4208 "Relaxing and leisure, misc." 0.0091
|
||||
"120401" 5.2838 5.2415 "Attending performing arts" 0.0313
|
||||
"120402" 5.2915 5.4177 "Attending museums" 0.019
|
||||
"120403" 5.1679 5.0339 "Attending movies/film" 0.0597
|
||||
"120404" 4.9542 4.7208 "Attending gambling establishments" 0.0142
|
||||
"120499" 5.3123 5.3884 "Arts and entertainment, misc." 0.0612
|
||||
"120504" 5.3712 5.571 "Waiting associated with arts and entertainment" 0.0042
|
||||
"130101" 5.1623 5.4596 "Doing aerobics" 0.0089
|
||||
"130102" 5.2133 4.9253 "Playing baseball" 0.0034
|
||||
"130103" 5.3224 5.1499 "Playing basketball" 0.0297
|
||||
"130104" 5.3086 5.3288 "Biking" 0.0459
|
||||
"130105" 5.1553 4.7978 "Playing billiards" 0.0084
|
||||
"130106" 5.5945 5.2725 "Boating" 0.0158
|
||||
"130107" 4.257 4.9967 "Bowling" 0.0098
|
||||
"130109" 5.2666 5.6163 "Dancing" 0.0144
|
||||
"130110" 4.1328 5.5767 "Participating in equestrian sports" 0.0054
|
||||
"130112" 5.1375 5.3017 "Fishing" 0.0328
|
||||
"130113" 5.1277 4.4822 "Playing football" 0.0075
|
||||
"130114" 5.1526 5.1615 "Golfing" 0.0337
|
||||
"130116" 5.3033 5.4277 "Hiking" 0.0162
|
||||
"130117" 4.9474 5.6306 "Playing hockey" 0.0046
|
||||
"130118" 4.6138 5.5714 "Hunting" 0.0177
|
||||
"130119" 5 5.878 "Participating in martial arts" 0.0049
|
||||
"130120" 5.2921 5.1088 "Playing racquet sports" 0.0087
|
||||
"130122" 5.2786 4.8898 "Rollerblading" 0.0065
|
||||
"130124" 4.8552 5.4258 "Running" 0.0721
|
||||
"130125" 5.7289 5.2832 "Skiing, ice skating, snowboarding" 0.0084
|
||||
"130126" 5.3031 5.3535 "Playing soccer" 0.0116
|
||||
"130127" 4.7308 5.2851 "Playing softball" 0.0067
|
||||
"130128" 4.4901 5.4879 "Using cardiovascular equipment" 0.0678
|
||||
"130129" 5.8696 5.5908 "Vehicle touring/racing" 0.0065
|
||||
"130130" 5.8128 5.4136 "Playing volleyball" 0.0058
|
||||
"130131" 4.9928 5.4046 "Walking" 0.3685
|
||||
"130132" 5.4465 5.4959 "Participating in water sports" 0.0895
|
||||
"130133" 4.8286 5.4693 "Weightlifting/strength training" 0.0689
|
||||
"130134" 4.6372 5.3806 "Working out, unspecified" 0.2212
|
||||
"130136" 4.567 5.4904 "Doing yoga" 0.0186
|
||||
"130199" 5.1362 5.4151 "Playing sports misc." 0.0416
|
||||
"130202" 4.9877 5.1101 "Watching baseball" 0.0108
|
||||
"130203" 5.5753 5.0357 "Watching basketball" 0.0063
|
||||
"130213" 5.238 5.4997 "Watching football" 0.0096
|
||||
"130216" 4.6272 5.2029 "Watching hockey" 0.0071
|
||||
"130218" 4.8914 4.4692 "Watching racquet sports" 0.0023
|
||||
"130224" 5.5379 5.3283 "Watching soccer" 0.0081
|
||||
"130227" 5.499 4.9985 "Watching volleyball" 0.0022
|
||||
"130299" 4.818 5.182 "Attending sporting events, misc." 0.0053
|
||||
"140101" 5.1801 5.7656 "Attending religious services" 0.5128
|
||||
"140102" 5.1242 5.8226 "Participation in religious practices" 0.3447
|
||||
"140103" 5.3894 5.4142 "Waiting assoc w/religious and spiritual activities" 0.0098
|
||||
"140105" 5.294 5.8076 "Religious education activities" 0.0787
|
||||
"149999" 5.4999 6 "Religious and spiritual activities, misc." 0.0029
|
||||
"150101" 4.3872 5.1186 "Computer use" 0.0465
|
||||
"150102" 4.892 5.3698 "Organizing and preparing" 0.0538
|
||||
"150103" 5.1465 5.8767 "Reading" 0.0049
|
||||
"150104" 3.9379 5.2894 "Telephone calls (except hotline counseling)" 0.0174
|
||||
"150105" 5.0888 4.8161 "Writing" 0.0026
|
||||
"150106" 5.5408 5.6845 "Fundraising" 0.0133
|
||||
"150199" 5.2515 5.4781 "Administrative and support activities, misc." 0.0196
|
||||
"150201" 5.0504 5.6601 "Food preparation, presentation, clean-up" 0.036
|
||||
"150202" 4.4875 5.4283 "Collecting and delivering clothing and other goods" 0.0101
|
||||
"150203" 5.1426 5.5682 "Providing care" 0.0195
|
||||
"150204" 5.2749 5.6544 "Teaching, leading, counseling, mentoring" 0.0525
|
||||
"150299" 4.7265 5.6233 "Social service and care activities, misc." 0.0093
|
||||
"150302" 4.833 5.3045 "Indoor and outdoor maintenance, repair, and clean-up" 0.0173
|
||||
"150401" 5.2987 5.6969 "Performing" 0.0265
|
||||
"150402" 5.037 5.5589 "Serving at volunteer events and cultural activities" 0.0194
|
||||
"150501" 4.5845 5.3972 "Attending meetings, conferences, and training" 0.0507
|
||||
"150701" 4.5999 5.2999 "Waiting associated with volunteer activities" 0.0024
|
||||
"159999" 5.2785 5.6518 "Volunteer activities, misc." 0.1119
|
||||
"160101" 4.7783 5.5471 "Telephone calls to/from family members" 0.3752
|
||||
"160102" 4.795 5.1776 "Phone calls to/from friends, neighbors" 0.2003
|
||||
"160103" 2.2221 5.5185 "Telephone calls to/from education svcs providers" 0.0032
|
||||
"160104" 3.4873 5.4081 "Telephone calls to/from salespeople" 0.0059
|
||||
"160105" 2.6467 4.8562 "Phone calls to/from prof, personal svcs providers" 0.0167
|
||||
"160106" 2.1017 5.3628 "Phone calls to/from household services providers" 0.0106
|
||||
"160108" 3.7003 5.8925 "Telephone calls to/from government officials" 0.0056
|
||||
"160199" 4.5566 5.211 "Telephone calls (to or from), misc." 0.1438
|
||||
"180101" 4.674 5.1188 "Travel for personal care" 0.0959
|
||||
"180201" 4.4686 5.0219 "Travel for housework" 0.0524
|
||||
"180202" 4.8177 5.1817 "Travel for food and drink prep" 0.0526
|
||||
"180203" 4.4063 5.4387 "Travel for int. maint, repair, and decoration" 0.0109
|
||||
"180204" 4.6292 4.7371 "Travel for ext. maint, repair, and decoration" 0.0055
|
||||
"180205" 4.7036 5.5364 "Travel for lawn, garden, and houseplants" 0.013
|
||||
"180206" 4.7082 5.0638 "Travel for care for animals (not vet care)" 0.0486
|
||||
"180207" 5.0427 5.0209 "Travel for vehicle care and maint (by self)" 0.0223
|
||||
"180208" 5.8333 6 "Travel for tool, repair, and maintenance" 0.0043
|
||||
"180209" 4.6447 5.0846 "Travel for household management" 0.2689
|
||||
"180302" 4.797 5.2995 "Travel for caring for and helping household children" 0.859
|
||||
"180303" 4.2 5.0188 "Travel for household children's education" 0.0126
|
||||
"180304" 4.1476 5.2791 "Travel for household children's health" 0.0163
|
||||
"180305" 3.8614 5.8019 "Travel for caring for household adults" 0.0206
|
||||
"180306" 4.5551 5.1211 "Travel for helping household adults" 0.1177
|
||||
"180402" 4.8915 5.2767 "Travel for helping non-household kids" 0.1991
|
||||
"180404" 3.6108 5.3335 "Travel for non-household children's health" 0.0043
|
||||
"180405" 4.352 5.2076 "Travel for caring for non-household adults" 0.015
|
||||
"180406" 4.8412 5.1668 "Travel for helping non-household adults" 0.4152
|
||||
"180501" 4.433 4.9649 "Travel for working" 2.2379
|
||||
"180502" 3.9999 4.9312 "Travel for work-related activities" 0.007
|
||||
"180503" 4.5506 5.4222 "Travel for income-generating activities" 0.0318
|
||||
"180504" 3.8844 5.2982 "Travel for job search and interviewing" 0.0322
|
||||
"180601" 4.2031 4.8203 "Travel for taking class" 0.125
|
||||
"180602" 4.9581 4.6657 "Travel for extracurricular activities (ex. Sports)" 0.0058
|
||||
"180603" 4.4433 4.6157 "Travel for research/homework" 0.0171
|
||||
"180604" 4.1596 4.7597 "Travel for registration/admin activities" 0.003
|
||||
"180701" 4.596 4.8843 "Traveling to/from the grocery store" 0.8789
|
||||
"180703" 4.7388 4.952 "Travel for purchasing food (not groceries)" 0.5882
|
||||
"180704" 4.6983 5.0044 "Travel for shopping, not groceries" 1.433
|
||||
"180705" 4.5856 5.0456 "Traveling to/from gas station" 0.1591
|
||||
"180801" 4.8568 6 "Travel for using childcare services" 0.005
|
||||
"180802" 4.3214 5.0572 "Travel for using financial svcs and banking" 0.0787
|
||||
"180804" 3.6482 5.3131 "Travel for using medical services" 0.1596
|
||||
"180805" 4.8084 4.9991 "Travel for using personal care services" 0.057
|
||||
"180806" 4.1981 4.8519 "Travel for using real estate services" 0.0163
|
||||
"180807" 3.4253 5.2574 "Travel for using veterinary services" 0.013
|
||||
"180899" 5.0215 4.9994 "Travel rel. to using prof, personal care svcs misc." 0.0055
|
||||
"180901" 4.4148 5.1697 "Travel for using household services" 0.0113
|
||||
"180902" 3.6941 5.7827 "Travel for home maintenance" 0.0028
|
||||
"180903" 4.5553 4.2484 "Travel for using pet services (not vet)" 0.0086
|
||||
"180905" 4.3643 5.0414 "Travel for vehicle maintenance" 0.0455
|
||||
"181001" 4.543 5.2496 "Travel for using government services" 0.0124
|
||||
"181002" 4.9754 5.6815 "Travel for civic obligations and participation" 0.0049
|
||||
"181101" 4.9796 5.0953 "Travel for eating and drinking" 1.4294
|
||||
"181201" 4.8021 5.1563 "Travel for socializing" 1.1308
|
||||
"181202" 5.1019 5.1226 "Trvl related to attending or hosting social events" 0.1871
|
||||
"181204" 5.0067 5.073 "Travel for arts and entertainment" 0.1724
|
||||
"181205" 5.1206 5.0307 "Travel as a form of entertainment" 0.0582
|
||||
"181206" 4.7928 5.0097 "Travel for relaxing and leisure" 0.3648
|
||||
"181301" 4.8777 5.071 "Travel for sports, exercise, or recreation" 0.5078
|
||||
"181302" 4.8429 5.0556 "Travel for attending sporting events" 0.0643
|
||||
"181401" 5.0299 5.5472 "Travel for religious practices" 0.5638
|
||||
"181501" 4.8462 5.2251 "Travel for volunteering" 0.2669
|
||||
"181599" 5.0713 5.285 "Travel for volunteer activities, misc." 0.0084
|
||||
"181601" 4.356 4.9264 "Travel for phone calls" 0.0229
|
||||
"181801" 4.7595 4.3052 "Security procedures related to traveling" 0.009
|
||||
"189999" 4.6894 5.1014 "Traveling, misc." 0.2231
|
||||
"500101" 4.5424 5.223 "Insufficient detail in verbatim" 0.5265
|
||||
"500103" 4.907 5.2302 "Missing travel or destination" 0.0964
|
||||
"500104" 4.4997 5.2727 "Recorded simultaneous activities incorrectly" 0.0315
|
||||
"500107" 4.6635 5.3266 "Unable to code activity at 1st tier" 0.0125
|
||||
|
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Activities, Happiness, and Meaning</title>
|
||||
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
|
||||
<div id="main-wrapper">
|
||||
<h1>Meaningfulness with Happiness</h1>
|
||||
<div id="chart"></div>
|
||||
</div>
|
||||
|
||||
<script src="js/d3.v7.min.js"></script>
|
||||
<script src="js/scatterplot.js"></script>
|
||||
@@ -0,0 +1,2 @@
|
||||
// https://d3js.org v7.4.0 Copyright 2010-2022 Mike Bostock
|
||||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";function n(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function e(t){let e=t,r=t,i=t;function o(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<0?e=r+1:o=r}while(e<o)}return e}return 2!==t.length&&(e=(n,e)=>t(n)-e,r=n,i=(e,r)=>n(t(e),r)),{left:o,center:function(t,n,r=0,i=t.length){const a=o(t,n,r,i-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,n,e=0,o=t.length){if(e<o){if(0!==r(n,n))return o;do{const r=e+o>>>1;i(t[r],n)<=0?e=r+1:o=r}while(e<o)}return e}}}function r(t){return null===t?NaN:+t}const i=e(n),o=i.right,a=i.left,u=e(r).center;var c=o;function f(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function s(t){return 0|t.length}function l(t){return!(t>0)}function h(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function d(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function p(t,n){const e=d(t,n);return e?Math.sqrt(e):e}function g(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class y{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}class InternMap extends Map{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(v(this,t))}has(t){return super.has(v(this,t))}set(t,n){return super.set(_(this,t),n)}delete(t){return super.delete(b(this,t))}}class InternSet extends Set{constructor(t,n=m){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(v(this,t))}add(t){return super.add(_(this,t))}delete(t){return super.delete(b(this,t))}}function v({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function _({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function b({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function m(t){return null!==t&&"object"==typeof t?t.valueOf():t}function x(t){return t}function w(t,...n){return k(t,x,x,n)}function M(t,...n){return k(t,Array.from,x,n)}function A(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function T(t,n,...e){return k(t,x,n,e)}function S(t,n,...e){return k(t,Array.from,n,e)}function E(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function k(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new InternMap,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function N(t,n){return Array.from(n,(n=>t[n]))}function C(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&2!==e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=z(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>z(e[t],e[n])))),N(t,r)}return t.sort(P(e))}function P(t=n){if(t===n)return z;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function z(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}var D=Array.prototype.slice;function R(t){return()=>t}var F=Math.sqrt(50),q=Math.sqrt(10),O=Math.sqrt(2);function U(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=I(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function I(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=F?10:o>=q?5:o>=O?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=F?10:o>=q?5:o>=O?2:1)}funLine truncated
|
||||
@@ -0,0 +1,103 @@
|
||||
// Dimensions of chart.
|
||||
let margin = { top: 20, right: 10, bottom: 50, left: 45 },
|
||||
// width = parseInt(d3.select('#chart').style('width'), 10) - margin.left - margin.right,
|
||||
width = 600 - margin.left - margin.right,
|
||||
height = 750 - margin.top - margin.bottom;
|
||||
|
||||
// Start SVG
|
||||
let svg = d3.select("#chart").append("svg")
|
||||
.attr("width", width + margin.left + margin.right)
|
||||
.attr("height", height + margin.top + margin.bottom)
|
||||
.append("g")
|
||||
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
||||
|
||||
// Scales: x and y
|
||||
let x = d3.scaleLinear()
|
||||
// .domain([0, 6])
|
||||
.domain([3, 6])
|
||||
.range([0, width]);
|
||||
let y = d3.scaleLinear()
|
||||
// .domain([0, 6])
|
||||
.domain([2, 6])
|
||||
.range([height, 0]);
|
||||
|
||||
// Point color
|
||||
let ptcolor = "#5a8171";
|
||||
|
||||
|
||||
|
||||
// x-axis
|
||||
let xAxis = d3.axisBottom(x)
|
||||
// .ticks(7)
|
||||
.ticks(4)
|
||||
.tickSize(-height-8)
|
||||
.tickPadding(5);
|
||||
let xAxisEl = svg.append("g")
|
||||
.attr("class", "x axis bottom")
|
||||
.attr("transform", "translate(0,"+(height+8)+")");
|
||||
xAxisEl.append("text")
|
||||
.attr("class", "axistitle")
|
||||
.attr("text-anchor", "start")
|
||||
.attr("x", 0).attr("y", 0)
|
||||
.attr("dx", "-.25em")
|
||||
.attr("dy", "2.5em")
|
||||
.text("Meaningfulness Score Average");
|
||||
xAxisEl.call(xAxis);
|
||||
|
||||
|
||||
// y-axis
|
||||
let yAxis = d3.axisLeft(y)
|
||||
// .ticks(7)
|
||||
.ticks(5)
|
||||
.tickSize(-width-8)
|
||||
.tickPadding(5);
|
||||
var yAxisEl = svg.append("g")
|
||||
.attr("class", "y axis left")
|
||||
.attr("transform", "translate("+(-8)+",0)");
|
||||
yAxisEl.append("text")
|
||||
.attr("class", "axistitle")
|
||||
.attr("x", 0).attr("y", 0)
|
||||
.attr("dx", "4px")
|
||||
.attr("dy", "-2em")
|
||||
.style("text-anchor", "end")
|
||||
.attr("transform", "rotate(-90)")
|
||||
.text("Happiness Score Average");
|
||||
yAxisEl.call(yAxis);
|
||||
|
||||
let activities;
|
||||
let circle;
|
||||
|
||||
// Load data
|
||||
const activitiesData = Promise.all([
|
||||
d3.tsv("data/act_means.tsv", d3.autoType)
|
||||
]);
|
||||
activitiesData.then(function(data) {
|
||||
|
||||
activities = data[0];
|
||||
console.log(activities);
|
||||
|
||||
// Initialize chart now that data is loaded.
|
||||
initChart();
|
||||
});
|
||||
|
||||
|
||||
function initChart() {
|
||||
// Circle for each node.
|
||||
circle = svg.append("g")
|
||||
.selectAll("circle")
|
||||
.data(activities)
|
||||
.join("circle")
|
||||
.attr("id", d => "circle"+d.activity)
|
||||
.attr("cx", d => x(d.meaning_mean))
|
||||
.attr("cy", d => y(d.schappy_mean))
|
||||
.attr("fill", ptcolor)
|
||||
// .attr("fill-opacity", .8)
|
||||
.attr("r", 3);
|
||||
// .attr("stroke", "#fff");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* #Reset & Basics (Inspired by E. Meyers)
|
||||
================================================== */
|
||||
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline; }
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
||||
display: block; }
|
||||
body {
|
||||
line-height: 1; }
|
||||
ol, ul {
|
||||
list-style: none; }
|
||||
blockquote, q {
|
||||
quotes: none; }
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none; }
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0; }
|
||||
|
||||
|
||||
/* Main layout
|
||||
============================ */
|
||||
|
||||
#main-wrapper {
|
||||
width: 600px;
|
||||
margin: 40px auto;
|
||||
}
|
||||
h1 {
|
||||
font-family: Georgia, serif;
|
||||
font-size: 1.45em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/* Chart
|
||||
============================ */
|
||||
|
||||
#chart {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.axis text {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: .8rem;
|
||||
}
|
||||
.axis .axistitle {
|
||||
text-transform: uppercase;
|
||||
fill: #333;
|
||||
font-size: .8rem;
|
||||
}
|
||||
.axis path,
|
||||
.axis line {
|
||||
fill: none;
|
||||
stroke: #ccc;
|
||||
stroke-width: 1px;
|
||||
shape-rendering: crispEdges;
|
||||
}
|
||||
.x.axis path, .y.axis path {
|
||||
display: none;
|
||||
}
|
||||
Reference in new issue
Block a user