Skip to content

xiaoshidetaikuai/hrdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HRDF

December 2015. Creating data visualizations of labor issues in Saudi Arabia.

Notes on geodata

Original shapefiles for Saudi's provinces were found at DIVA-GIS. They were then converted to GeoJSON using the command-line tool, ogr2ogr:

ogr2ogr -f GeoJSON saudi.json raw/SAU_adm1.shp

To compress this file, TopoJSON was used, where NAME_1 was assumed to be the province names:

topojson -o saudi_comp.json --id-property NAME_1 saudi.json

Resources

TODOs

  1. git.
  2. Get map up.
  3. GPS coords for province capitals.
  4. Workforce population.
  5. Total population (Saudi, non-Saudi) data.
  6. Input .csv for dynamic bar chart.
  7. Linking the map to d3.filter/d3.update of the dynamic bar chart.
  • Default: Keep region highlighted and bar chart label.
  • Hover: Change bar chart and labels?
  • Click: Keep region highlighted and bar chart label.
  1. Better way to toggle between graphs?
  2. Update spellings, according to last Slack updates.
  3. Kill overlapping circles; pie charts (vary r) instead.
  4. Fix pie charts:
  • How do I move each pie chart over each capital? transform, translate() - but is it upside-down?
  • Arc lengths?
  • Reorganize data?
  1. Turn off province highlighting when not in #byRegion.
  2. Pie chart: colors?
  3. Pie chart: Tooltips over each slice?
  4. Industry viz: start that function.
  5. Explanatory captions.
  6. Bar chart: axes, legend.
  7. For each chart: highlight the pies/bars where Saudi > expat and expat > Saudi. (Small circle button? Caption/subtitle?)
  8. Fix xAxis.
  9. Bold/highlight the "by..." user selection.
  10. Why does update only work the first time, but not subsequent times?
  11. By region: Fix mouseout classes.
  12. Stack charts.
  13. Industry viz: Dropdown menu for all industries.
  14. Industry viz: Update via dropdown.
  15. Industry viz: First chart. Default to Construction?
  16. By region: Fix mouseout title.
  17. By region: click fixes the region.
  18. By region: Mouseover captions.
  19. Merge lat/lon data into industries.csv. Check that the pandas merge worked!
  20. By industry: Mouseover captions.
  21. Tooltips: Fix percentage calcs.
  22. Legend with Saudi/expat colors.

About

HRDF data visualizations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.0%
  • CSS 9.0%
  • HTML 8.1%
  • Python 6.9%