Skip to content

Instantly share code, notes, and snippets.

@hongymagic
Last active December 12, 2015 10:29
Show Gist options
  • Save hongymagic/4759156 to your computer and use it in GitHub Desktop.
Save hongymagic/4759156 to your computer and use it in GitHub Desktop.
Australian Taxable Income for year 2009-10 sorted by Occupation

List of occupations and their taxable incomes for financial year 2009-10. This graph was generated as part of my quest to learn d3.js in more detail. My next aim is to fork this gist, and understand what is happening behind the scenes.

Data provided by ATO.

ID Occupation Count Income
1100 Manager or director - type not specified, ATO RDCC 1885.00 98921.00
1111 Chief Executives and Managing Directors 84090.00 168545.00
1112 General Managers 110265.00 112011.00
1113 Legislators 1855.00 89797.00
1210 Farmers and Farm Managers nfd 115.00 37221.00
1211 Aquaculture Farmers 1255.00 48132.00
1212 Crop Farmers 6735.00 55412.00
1213 Livestock Farmers 6950.00 48748.00
1214 Mixed Crop and Livestock Farmers 1780.00 58976.00
1311 Advertising and Sales Managers 89950.00 91455.00
1321 Corporate Services Managers 4055.00 107035.00
1322 Finance Managers 16665.00 141214.00
1323 Human Resource Managers 6090.00 107818.00
1324 Policy and Planning Managers 15740.00 105607.00
1325 Research and Development Managers 4750.00 94863.00
1331 Construction Managers 38155.00 84795.00
1332 Engineering Managers 22580.00 123581.00
1333 Importers, Exporters and Wholesalers 2925.00 103879.00
1334 Manufacturers 18305.00 64734.00
1335 Production Managers 11810.00 108438.00
1336 Supply and Distribution Managers 9160.00 83536.00
1341 Child Care Centre Managers 260.00 54744.00
1342 Health and Welfare Services Managers 3690.00 75801.00
1343 School Principals 5625.00 92803.00
1344 Other Education Managers 1150.00 90317.00
1351 ICT Managers 35720.00 103255.00
1391 Commissioned Officers (Management) 9870.00 69387.00
1392 Senior Non-commissioned Defence Force Members 7080.00 77686.00
1399 Other Specialist Managers 12390.00 73088.00
1411 Cafe and Restaurant Managers 13715.00 46259.00
1412 Caravan Park and Camping Ground Managers 1020.00 48069.00
1413 Hotel and Motel Managers 7990.00 58061.00
1414 Licensed Club Managers 2750.00 64699.00
1419 Other Accommodation and Hospitality Managers 495.00 48969.00
1421 Retail Managers 35830.00 54413.00
1491 Amusement, Fitness and Sports Centre Managers 1710.00 53856.00
1492 Call or Contact Centre and Customer Service Managers 26085.00 56737.00
1493 Conference and Event Organisers 1095.00 54453.00
1494 Transport Services Managers 13450.00 69416.00
1499 Other Hospitality, Retail and Service Managers 18320.00 110942.00
2111 Actors, Dancers and Other Entertainers 3165.00 57899.00
2112 Music Professionals 2415.00 55893.00
2113 Photographers 2140.00 54587.00
2114 Visual Arts and Crafts Professionals 1170.00 48389.00
2120 Media Professionals nfd 35.00 59631.00
2121 Artistic Directors, and Media Producers and Presenters 3900.00 82935.00
2122 Authors, and Book and Script Editors 625.00 64022.00
2123 Film, Television, Radio and Stage Directors 4770.00 75170.00
2124 Journalists and Other Writers 7155.00 75400.00
2211 Accountants 70840.00 95265.00
2212 Auditors, Company Secretaries and Corporate Treasurers 7640.00 103683.00
2220 Financial Brokers and Dealers, and Investment Advisers nfd 10.00 42050.00
2221 Financial Brokers 6410.00 112967.00
2222 Financial Dealers 3835.00 263682.00
2223 Financial Investment Advisers and Managers 11220.00 117038.00
2231 Human Resource Professionals 9615.00 74463.00
2232 ICT Trainers 810.00 65073.00
2233 Training and Development Professionals 8455.00 69651.00
2241 Actuaries, Mathematicians and Statisticians 2195.00 127436.00
2242 Archivists, Curators and Records Managers 1930.00 61310.00
2243 Economists 2095.00 128656.00
2244 Intelligence and Policy Analysts 2310.00 80614.00
2245 Land Economists and Valuers 3440.00 88814.00
2246 Librarians 1585.00 60963.00
2247 Management and Organisation Analysts 14795.00 85567.00
2249 Other Information and Organisation Professionals 1795.00 64439.00
2251 Advertising and Marketing Professionals 10045.00 77190.00
2252 ICT Sales Professionals 8800.00 93227.00
2253 Public Relations Professionals 3665.00 76217.00
2254 Technical Sales Representatives 19015.00 65532.00
2300 Design, Engineering, Science and Transport Professionals 40.00 70411.00
2311 Air Transport Professionals 11205.00 109914.00
2312 Marine Transport Professionals 8225.00 96516.00
2320 Architects, Designers, Planners and Surveyors nfd 50.00 56518.00
2321 Architects and Landscape Architects 10760.00 84498.00
2322 Cartographers and Surveyors 9195.00 79077.00
2323 Fashion, Industrial and Jewellery Designers 2480.00 65597.00
2324 Graphic and Web Designers, and Illustrators 14090.00 54622.00
2325 Interior Designers 680.00 65966.00
2326 Urban and Regional Planners 4425.00 82226.00
2330 Engineering Professionals nfd 1375.00 98130.00
2331 Chemical and Materials Engineers 4805.00 105382.00
2332 Civil Engineering Professionals 29235.00 99249.00
2333 Electrical Engineers 17390.00 94842.00
2334 Electronics Engineers 5670.00 81736.00
2335 Industrial, Mechanical and Production Engineers 29885.00 82379.00
2336 Mining Engineers 5920.00 152429.00
2339 Other Engineering Professionals 30745.00 96413.00
2340 Natural and Physical Science Professionals nfd 310.00 87041.00
2341 Agricultural and Forestry Scientists 6220.00 70160.00
2342 Chemists, and Food and Wine Scientists 5845.00 78679.00
2343 Environmental Scientists 11390.00 71802.00
2344 Geologists and Geophysicists 6845.00 130807.00
2345 Life Scientists 5500.00 72675.00
2346 Medical Laboratory Scientists 3650.00 74241.00
2347 Veterinarians 2460.00 86530.00
2349 Other Natural and Physical Science Professionals 4490.00 101494.00
2400 Education Professionals nfd 1800.00 61084.00
2410 School Teachers nfd 265.00 63286.00
2411 Early Childhood (Pre-primary School) Teachers 350.00 56242.00
2412 Primary School Teachers 16250.00 62754.00
2413 Middle School Teachers (Aus) / Intermediate School Teachers (NZ) 1550.00 61396.00
2414 Secondary School Teachers 46105.00 66038.00
2415 Special Education Teachers 1540.00 57997.00
2419 Teacher - other school, ATO 16275.00 61758.00
2421 University Lecturers and Tutors 20330.00 92175.00
2422 Vocational Education Teachers (Aus) / Polytechnic Teachers (NZ) 11630.00 63959.00
2491 Education Advisers and Reviewers 2215.00 69135.00
2492 Private Tutors and Teachers 2355.00 45456.00
2493 Teachers of English to Speakers of Other Languages 710.00 50308.00
2500 Health Professionals nfd 5.00 60847.00
2511 Dietitians 185.00 64887.00
2512 Medical Imaging Professionals 3650.00 85237.00
2513 Occupational and Environmental Health Professionals 4980.00 83639.00
2514 Optometrists and Orthoptists 1540.00 88766.00
2515 Pharmacists 5475.00 86326.00
2519 Other Health Diagnostic and Promotion Professionals 720.00 57513.00
2521 Chiropractors and Osteopaths 1105.00 72226.00
2522 Complementary Health Therapists 420.00 47078.00
2523 Dental Practitioners 4080.00 155373.00
2524 Occupational Therapists 880.00 59533.00
2525 Physiotherapists 3920.00 66201.00
2526 Podiatrists 650.00 73076.00
2527 Speech Professionals and Audiologists 585.00 79609.00
2530 Medical Practitioners nfd 30.00 122974.00
2531 Generalist Medical Practitioners 9820.00 160718.00
2532 Anaesthetists 1925.00 323014.00
2533 Internal Medicine Specialists 4410.00 271942.00
2534 Psychiatrists 1345.00 188999.00
2535 Surgeons 2610.00 352936.00
2539 Other Medical Practitioners 14915.00 192822.00
2540 Midwifery and Nursing Professionals nfd 195.00 52738.00
2541 Midwives 180.00 67052.00
2542 Nurse Educators and Researchers 535.00 65931.00
2543 Nurse Managers 920.00 74431.00
2544 Registered Nurses 22500.00 60686.00
2600 ICT Professionals nfd 135.00 75517.00
2610 Business and Systems Analysts, and Programmers nfd 95.00 69616.00
2611 ICT Business and Systems Analysts 18125.00 87300.00
2612 Multimedia Specialists and Web Developers 3575.00 59772.00
2613 Software and Applications Programmers 49210.00 82708.00
2621 Database and Systems Administrators, and ICT Security Specialists 19705.00 82051.00
2631 Computer Network Professionals 15265.00 75637.00
2632 ICT Support and Test Engineers 10555.00 68420.00
2633 Telecommunications Engineering Professionals 3530.00 84600.00
2711 Barristers 635.00 176299.00
2712 Judicial and Other Legal Professionals 1395.00 204664.00
2713 Solicitors 17550.00 128839.00
2721 Counsellors 2735.00 52121.00
2722 Ministers of Religion 7660.00 33427.00
2723 Psychologists 3090.00 73800.00
2724 Social Professionals 1400.00 56542.00
2725 Social Workers 5400.00 52381.00
2726 Welfare, Recreation and Community Arts Workers 1570.00 46928.00
3111 Agricultural Technicians 840.00 55475.00
3112 Medical Technicians 5280.00 54086.00
3113 Primary Products Inspectors 2970.00 64380.00
3114 Science Technicians 5840.00 55509.00
3120 Building and Engineering Technicians nfd 325.00 56581.00
3121 Architectural, Building and Surveying Technicians 33860.00 74029.00
3122 Civil Engineering Draftspersons and Technicians 7060.00 67163.00
3123 Electrical Engineering Draftspersons and Technicians 9120.00 75639.00
3124 Electronic Engineering Draftspersons and Technicians 5380.00 65047.00
3125 Mechanical Engineering Draftspersons and Technicians 7735.00 68859.00
3126 Safety Inspectors 6185.00 80668.00
3129 Other Building and Engineering Technicians 18495.00 91922.00
3131 ICT Support Technicians 16815.00 56756.00
3132 Telecommunications Technical Specialists 6890.00 72874.00
3211 Automotive Electricians 5315.00 59407.00
3212 Motor Mechanics 70910.00 55562.00
3221 Metal Casting, Forging and Finishing Trades Workers 1245.00 47244.00
3222 Sheetmetal Trades Workers 9790.00 54027.00
3223 Structural Steel and Welding Trades Workers 66335.00 60627.00
3231 Aircraft Maintenance Engineers 10440.00 76006.00
3232 Metal Fitters and Machinists 65445.00 71481.00
3233 Precision Metal Trades Workers 2685.00 48557.00
3234 Toolmakers and Engineering Patternmakers 4485.00 58139.00
3241 Panelbeaters 10390.00 49228.00
3242 Vehicle Body Builders and Trimmers 2910.00 51502.00
3243 Vehicle Painters 4750.00 47302.00
3311 Bricklayers and Stonemasons 9095.00 45920.00
3312 Carpenters and Joiners 55990.00 51737.00
3321 Floor Finishers 2350.00 45165.00
3322 Painting Trades Workers 13250.00 43720.00
3331 Glaziers 7130.00 48647.00
3332 Plasterers 9920.00 46738.00
3333 Roof Tilers 3235.00 42410.00
3334 Wall and Floor Tilers 3800.00 42040.00
3341 Plumbers 38690.00 56639.00
3411 Electricians 84485.00 73019.00
3421 Airconditioning and Refrigeration Mechanics 12960.00 60070.00
3422 Electrical Distribution Trades Workers 9380.00 80258.00
3423 Electronics Trades Workers 25570.00 61628.00
3424 Telecommunications Trades Workers 12045.00 63283.00
3511 Bakers and Pastrycooks 12150.00 42971.00
3512 Butchers and Smallgoods Makers 15140.00 44702.00
3513 Chefs 47820.00 41786.00
3514 Cooks 9065.00 31822.00
3611 Animal Attendants and Trainers 2190.00 45672.00
3612 Shearers 4815.00 39009.00
3613 Veterinary Nurses 185.00 37255.00
3621 Florists 185.00 39413.00
3622 Gardeners 26190.00 41845.00
3623 Greenkeepers 11655.00 41974.00
3624 Nurserypersons 2620.00 45786.00
3900 Other Technicians and Trades Workers nfd 5.00 27535.00
3911 Hairdressers 3095.00 38251.00
3920 Printing Trades Workers nfd 285.00 51903.00
3921 Binders, Finishers and Screen Printers 3605.00 53200.00
3922 Graphic Pre-press Trades Workers 1945.00 57338.00
3923 Printers 8445.00 58915.00
3931 Canvas and Leather Goods Makers 970.00 42027.00
3932 Clothing Trades Workers 605.00 44499.00
3933 Upholsterers 1880.00 41611.00
3941 Cabinetmakers 17055.00 44060.00
3942 Wood Machinists and Other Wood Trades Workers 3670.00 43080.00
3991 Boat Builders and Shipwrights 2750.00 47513.00
3992 Chemical, Gas, Petroleum and Power Generation Plant Operators 9660.00 92080.00
3993 Gallery, Library and Museum Technicians 780.00 45907.00
3994 Jewellers 1510.00 55073.00
3995 Performing Arts Technicians 6635.00 56160.00
3996 Signwriters 2640.00 45966.00
3999 Other Miscellaneous Technicians and Trades Workers 9825.00 57828.00
4110 Health and Welfare Support Workers nfd 5.00 40269.00
4111 Ambulance Officers and Paramedics 8450.00 71788.00
4112 Dental Hygienists, Technicians and Therapists 1995.00 63726.00
4113 Diversional Therapists 80.00 37712.00
4114 Enrolled and Mothercraft Nurses 1215.00 43310.00
4115 Indigenous Health Workers 670.00 44348.00
4116 Massage Therapists 480.00 34176.00
4117 Welfare Support Workers 13220.00 42690.00
4211 Child Carers 1805.00 32946.00
4221 Education Aides 4200.00 37702.00
4231 Aged and Disabled Carers 11230.00 38057.00
4232 Dental Assistants 290.00 37822.00
4233 Nursing Support and Personal Care Workers 12895.00 38975.00
4234 Special Care Workers 315.00 41299.00
4310 Hospitality Workers nfd 335.00 30242.00
4311 Bar Attendants and Baristas 18660.00 31385.00
4312 Cafe Workers 2065.00 29987.00
4313 Gaming Workers 2485.00 45717.00
4314 Hotel Service Managers 2215.00 42853.00
4315 Waiters 11915.00 30684.00
4319 Other Hospitality Workers 12215.00 36514.00
4411 Defence Force Members - Other Ranks 18675.00 52355.00
4412 Fire and Emergency Workers 13435.00 71597.00
4413 Police 39960.00 77276.00
4420 Prison and Security Officers nfd 10.00 57589.00
4421 Prison Officers 9640.00 68965.00
4422 Security Officers and Guards 39910.00 47704.00
4500 Sports and Personal Service Workers nfd 5.00 40715.00
4511 Beauty Therapists 115.00 47401.00
4512 Driving Instructors 845.00 51466.00
4513 Funeral Workers 1435.00 60440.00
4514 Gallery, Museum and Tour Guides 1665.00 39271.00
4515 Personal Care Consultants 80.00 43728.00
4516 Tourism and Travel Advisers 3275.00 52543.00
4517 Travel Attendants 3440.00 59307.00
4518 Other Personal Service Workers 280.00 44177.00
4521 Fitness Instructors 3505.00 38445.00
4522 Outdoor Adventure Guides 790.00 36087.00
4523 Sports Coaches, Instructors and Officials 6120.00 50854.00
4524 Sportspersons 6455.00 70321.00
5100 Office Managers and Program Administrators nfd 245.00 55318.00
5111 Contract, Program and Project Administrators 29720.00 76051.00
5121 Office Managers 17920.00 64821.00
5122 Practice Managers 73855.00 88439.00
5211 Personal Assistants 1100.00 61427.00
5212 Secretaries 320.00 53537.00
5300 General Clerical Workers nfd 890.00 56560.00
5310 Public servant - administrative service officer - levels 3-4, ATO 14115.00 57822.00
5311 General Clerks 28060.00 48374.00
5321 Keyboard Operators 4200.00 46593.00
5411 Call or Contact Centre Workers 9640.00 41813.00
5412 Inquiry Clerks 485.00 56177.00
5421 Receptionists 3120.00 36749.00
5511 Accounting Clerks 15100.00 60092.00
5512 Bookkeepers 1885.00 45040.00
5513 Payroll Clerks 2085.00 57540.00
5521 Bank Workers 18485.00 79769.00
5522 Credit and Loans Officers 3680.00 63464.00
5523 Insurance, Money Market and Statistical Clerks 8720.00 75890.00
5610 Clerical and Office Support Workers nfd 7395.00 54684.00
5611 Betting Clerks 765.00 43338.00
5612 Couriers and Postal Deliverers 17335.00 45426.00
5613 Filing and Registry Clerks 315.00 40523.00
5614 Mail Sorters 4060.00 48728.00
5615 Survey Interviewers 590.00 34599.00
5616 Switchboard Operators 520.00 41514.00
5619 Other Clerical and Office Support Workers 2570.00 44914.00
5911 Purchasing and Supply Logistics Clerks 61785.00 46952.00
5912 Transport and Despatch Clerks 9470.00 60132.00
5991 Conveyancers and Legal Executives 1150.00 81052.00
5992 Court and Legal Clerks 3360.00 53560.00
5993 Debt Collectors 1560.00 46940.00
5994 Human Resource Clerks 1645.00 43127.00
5995 Inspectors and Regulatory Officers 11105.00 70222.00
5996 Insurance Investigators, Loss Adjusters and Risk Surveyors 740.00 81036.00
5997 Library Assistants 680.00 37691.00
5999 Other Miscellaneous Clerical and Administrative Workers 7380.00 55383.00
6110 Insurance Agents and Sales Representatives nfd 5.00 36666.00
6111 Auctioneers, and Stock and Station Agents 1510.00 68519.00
6112 Insurance Agents 3025.00 82025.00
6113 Sales Representatives 72835.00 54738.00
6121 Real Estate Sales Agents 23365.00 82354.00
6200 Sales assistant - type not specified, ATO RDCC 2615.00 32339.00
6211 Sales Assistants (General) 40740.00 33531.00
6212 ICT Sales Assistants 1990.00 39618.00
6213 Motor Vehicle and Vehicle Parts Salespersons 7985.00 68310.00
6214 Pharmacy Sales Assistants 1275.00 36542.00
6215 Retail Supervisors 13005.00 55085.00
6216 Service Station Attendants 2180.00 35539.00
6217 Street Vendors and Related Salespersons 435.00 43566.00
6219 Other Sales Assistants and Salespersons 13405.00 36012.00
6311 Checkout Operators and Office Cashiers 14880.00 30468.00
6391 Models and Sales Demonstrators 2785.00 47098.00
6392 Retail and Wool Buyers 1555.00 84625.00
6393 Telemarketers 2165.00 32061.00
6394 Ticket Salespersons 2680.00 54155.00
6395 Visual Merchandisers 190.00 40137.00
7100 Machine and Stationary Plant Operators nfd 1180.00 50073.00
7111 Clay, Concrete, Glass and Stone Processing Machine Operators 4805.00 58269.00
7112 Industrial Spraypainters 6100.00 50690.00
7113 Paper and Wood Processing Machine Operators 5745.00 54229.00
7114 Photographic Developers and Printers 825.00 51659.00
7115 Plastics and Rubber Production Machine Operators 5625.00 49078.00
7116 Sewing Machinists 580.00 38705.00
7117 Textile and Footwear Production Machine Operators 990.00 46051.00
7119 Other Machine Operators 17875.00 58035.00
7121 Crane, Hoist and Lift Operators 9185.00 80930.00
7122 Drillers, Miners and Shot Firers 40625.00 97737.00
7123 Engineering Production Systems Workers 2390.00 54769.00
7129 Other Stationary Plant Operators 11505.00 70723.00
7210 Mobile Plant Operators nfd 570.00 57410.00
7211 Agricultural, Forestry and Horticultural Plant Operators 7025.00 45180.00
7212 Earthmoving Plant Operators 36085.00 66327.00
7213 Forklift Drivers 27140.00 47597.00
7219 Other Mobile Plant Operators 7490.00 57107.00
7300 Road and Rail Drivers nfd 635.00 42236.00
7311 Automobile Drivers 1995.00 40454.00
7312 Bus and Coach Drivers 24735.00 49541.00
7313 Train and Tram Drivers 10435.00 83579.00
7321 Delivery Drivers 21505.00 39795.00
7331 Truck Drivers 132965.00 54423.00
7411 Storepersons 94870.00 43630.00
8110 Cleaners and Laundry Workers nfd 1515.00 32846.00
8111 Car Detailers 7430.00 33304.00
8112 Commercial Cleaners 23025.00 35805.00
8113 Domestic Cleaners 940.00 33186.00
8114 Housekeepers 2235.00 30707.00
8115 Laundry Workers 2560.00 36185.00
8116 Other Cleaners 10650.00 38200.00
8200 Labourer - type not specified, ATO RDCC 2525.00 34475.00
8210 Construction and Mining Labourers nfd. Construction worker - type not specified, ATO RDCC 205.00 51338.00
8211 Building and Plumbing Labourers 59975.00 47578.00
8212 Concreters 14960.00 55222.00
8213 Fencers 2455.00 41067.00
8214 Insulation and Home Improvement Installers 4530.00 44369.00
8215 Paving and Surfacing Labourers 10745.00 53440.00
8216 Railway Track Workers 4635.00 65165.00
8217 Structural Steel Construction Workers 24170.00 70109.00
8219 Other Construction and Mining Labourers 13275.00 70200.00
8300 Factory Process Workers nfd 1815.00 39459.00
8310 Food Process Workers nfd 95.00 40251.00
8311 Food and Drink Factory Workers 21510.00 49708.00
8312 Meat Boners and Slicers, and Slaughterers 5785.00 43360.00
8313 Meat, Poultry and Seafood Process Workers 17895.00 40191.00
8321 Packers 9925.00 36126.00
8322 Product Assemblers 19330.00 43490.00
8391 Metal Engineering Process Workers 11310.00 53367.00
8392 Plastics and Rubber Factory Workers 3475.00 45582.00
8393 Product Quality Controllers 945.00 56478.00
8394 Timber and Wood Process Workers 16495.00 46193.00
8399 Other Factory Process Workers 28760.00 47192.00
8410 Farm, Forestry and Garden Workers nfd 545.00 29457.00
8411 Aquaculture Workers 580.00 40349.00
8412 Crop Farm Workers 10885.00 33648.00
8413 Forestry and Logging Workers 4520.00 46299.00
8414 Garden and Nursery Labourers 8030.00 36613.00
8415 Livestock Farm Workers 11610.00 36887.00
8416 Mixed Crop and Livestock Farm Workers 1400.00 37832.00
8419 Other Farm, Forestry and Garden Workers 17415.00 39215.00
8511 Fast Food Cooks 4545.00 25904.00
8512 Food Trades Assistants 1860.00 32590.00
8513 Kitchenhands 13735.00 27263.00
8910 Freight Handlers and Shelf Fillers nfd 30.00 42541.00
8911 Freight and Furniture Handlers 8090.00 64154.00
8912 Shelf Fillers 5875.00 29606.00
8991 Caretakers 2410.00 41360.00
8992 Deck and Fishing Hands 9240.00 66202.00
8993 Handypersons 7575.00 39531.00
8994 Motor Vehicle Parts and Accessories Fitters 8810.00 43407.00
8995 Printing Assistants and Table Workers 3125.00 48208.00
8996 Recycling and Rubbish Collectors 2425.00 50697.00
8997 Vending Machine Attendants 110.00 37618.00
8999 Other Miscellaneous Labourers 58785.00 46061.00
9133 Consultant - construction manager 870.00 100676.00
9221 Consultant - tax accountant 670.00 73174.00
9222 Consultant - financial investment 1415.00 138190.00
9223 Consultant - human resources 1945.00 75923.00
9224 Consultant - management 7850.00 121120.00
9225 Consultant - marketing and public relations 1210.00 84682.00
9232 Consultant - urban and regional planner 200.00 91227.00
9233 Consultant - engineering 4155.00 106123.00
9234 Consultant - environmental 840.00 74511.00
9250 Consultant - medical 210.00 126139.00
9251 Consultant - occupational health and safety 745.00 83983.00
9254 Consultant - clinical nurse 65.00 71472.00
9261 Consultant - IT business analyst 9110.00 97707.00
9311 Apprentice or trainee - agricultural or medical technician 395.00 34412.00
9313 Apprentice or trainee - information technology technician or telecommunications technical specialist 370.00 38510.00
9321 Apprentice or trainee - automotive mechanic or electrician 6595.00 29262.00
9322 Apprentice or trainee - metal fabrication engineering trades worker 3755.00 32642.00
9323 Apprentice or trainee - mechanical trades engineering trades worker 4110.00 35298.00
9324 Apprentice or trainee - automotive - other 2220.00 28949.00
9331 Apprentice or trainee - bricklayer, or carpenter and joiner 13295.00 27668.00
9332 Apprentice or trainee - floor finisher 170.00 29898.00
9333 Apprentice or trainee - tiler or plasterer 1475.00 25486.00
9334 Apprentice or trainee - plumber 6460.00 29594.00
9341 Apprentice or trainee - electrician 14525.00 35993.00
9342 Apprentice or trainee - electronics or telecommunications trades worker 2500.00 32696.00
9351 Apprentice or trainee - food trades worker 6570.00 27367.00
9361 Apprentice or trainee - animal attendant, trainer or shearer 65.00 33503.00
9362 Apprentice or trainee - horticultural trades worker 990.00 25581.00
9391 Apprentice or trainee - hair dresser 185.00 23685.00
9392 Apprentice or trainee - printer or graphic artist 415.00 35591.00
9393 Apprentice or trainee - textile, clothing or footware trades worker 80.00 26592.00
9394 Apprentice or trainee - wood trades worker 630.00 26853.00
9399 Apprentice or trainee - miscellaneous technicians or trades worker 555.00 33695.00
9410 Apprentice or trainee - health and welfare support services 55.00 35310.00
9420 Apprentice or trainee - care and community services 30.00 27629.00
9431 Apprentice or trainee - hospitality 160.00 27684.00
9442 Consultant, apprentice or trainee - security and correctional services 345.00 66344.00
9451 Consultant, apprentice or trainee - personal service or travel 355.00 55899.00
9452 Apprentice or trainee - sport and recreation 120.00 33260.00
9510 Apprentice or trainee - business services 190.00 31109.00
9530 Apprentice or trainee - clerical services 115.00 36039.00
9550 Apprentice or trainee - financial services 110.00 32733.00
9552 Consultant - insurance (clerical) 225.00 60056.00
9599 Consultant, apprentice or trainee - justice and legal services, insurance claims investigation 150.00 62014.00
9611 Consultant - sales representative (wholesale) 675.00 69193.00
9612 Consultant - real estate representative 885.00 100839.00
9621 Consultant - sales assistant (retail) 2215.00 48009.00
9712 Apprentice or trainee - miner 190.00 50981.00
9730 Apprentice or trainee - transport and distribution driver 80.00 40369.00
9741 Apprentice or trainee - storeperson 155.00 35261.00
9811 Apprentice or trainee - cleaning services 150.00 31451.00
9831 Apprentice or trainee - food, drink or meat processor 80.00 32531.00
9841 Apprentice or trainee - farm, forestry or garden worker 175.00 29297.00
9899 Apprentice or trainee - deck or fishing hand, or autoglazier 190.00 31438.00
<!DOCTYPE html>
<html>
<head>
<title>Australian Taxable Income for year 2009-10 sorted by Occupation</title>
</head>
<body>
<div id="chart"></div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
function renderChart(data) {
var valueLabelWidth = 60; // space reserved for value labels (right)
var barHeight = 20; // height of one bar
var barLabelWidth = 350; // space reserved for bar labels
var barLabelPadding = 5; // padding between bar and bar labels (left)
var gridLabelHeight = 18; // space reserved for gridline labels
var gridChartOffset = 3; // space between start of grid and first bar
var maxBarWidth = 550; // width of the bar with the max value
// accessor functions
var barLabel = function(d) { return d['Occupation']; };
var barValue = function(d) { return parseFloat(d['Income']); };
// sorting
var sortedData = data.sort(function(a, b) {
return d3.descending(barValue(a), barValue(b));
});
// scales
var yScale = d3.scale.ordinal().domain(d3.range(0, sortedData.length)).rangeBands([0, sortedData.length * barHeight]);
var y = function(d, i) { return yScale(i); };
var yText = function(d, i) { return y(d, i) + yScale.rangeBand() / 2; };
var x = d3.scale.linear().domain([0, d3.max(sortedData, barValue)]).range([0, maxBarWidth]);
// svg container element
var chart = d3.select('#chart').append("svg")
.attr('width', maxBarWidth + barLabelWidth + valueLabelWidth)
.attr('height', gridLabelHeight + gridChartOffset + sortedData.length * barHeight);
// grid line labels
var gridContainer = chart.append('g')
.attr('transform', 'translate(' + barLabelWidth + ',' + gridLabelHeight + ')');
gridContainer.selectAll("text").data(x.ticks(10)).enter().append("text")
.attr("x", x)
.attr("dy", -3)
.attr("text-anchor", "middle")
.text(String);
// vertical grid lines
gridContainer.selectAll("line").data(x.ticks(10)).enter().append("line")
.attr("x1", x)
.attr("x2", x)
.attr("y1", 0)
.attr("y2", yScale.rangeExtent()[1] + gridChartOffset)
.style("stroke", "#ccc");
// bar labels
var labelsContainer = chart.append('g')
.attr('transform', 'translate(' + (barLabelWidth - barLabelPadding) + ',' + (gridLabelHeight + gridChartOffset) + ')');
labelsContainer.selectAll('text').data(sortedData).enter().append('text')
.attr('y', yText)
.attr('stroke', 'none')
.attr('fill', 'black')
.attr("dy", ".35em") // vertical-align: middle
.attr('text-anchor', 'end')
.text(barLabel);
// bars
var barsContainer = chart.append('g')
.attr('transform', 'translate(' + barLabelWidth + ',' + (gridLabelHeight + gridChartOffset) + ')');
barsContainer.selectAll("rect").data(sortedData).enter().append("rect")
.attr('y', y)
.attr('height', yScale.rangeBand())
.attr('width', function(d) { return x(barValue(d)); })
.attr('stroke', 'white')
.attr('fill', 'steelblue');
// bar value labels
barsContainer.selectAll("text").data(sortedData).enter().append("text")
.attr("x", function(d) { return x(barValue(d)); })
.attr("y", yText)
.attr("dx", 3) // padding-left
.attr("dy", ".35em") // vertical-align: middle
.attr("text-anchor", "start") // text-align: right
.attr("fill", "black")
.attr("stroke", "none")
.text(function(d) { return d3.round(barValue(d), 2); });
// start line
barsContainer.append("line")
.attr("y1", -gridChartOffset)
.attr("y2", yScale.rangeExtent()[1] + gridChartOffset)
.style("stroke", "#000");
}
d3.csv("data.csv", function (data) {
renderChart(data);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment