All examples By author By category About

michalskop

SK: Regional Elections 2017

Slovak Regional Elections 2017

Municipalities colored by the winning candidate:

SK: https://bl.ocks.org/michalskop/raw/13a7e9f1bdf03b0faa7c0b1d5bcbc838/

EN: https://bl.ocks.org/michalskop/raw/13a7e9f1bdf03b0faa7c0b1d5bcbc838/index_en.html

Voters' turnout:

SK: https://bl.ocks.org/michalskop/raw/13a7e9f1bdf03b0faa7c0b1d5bcbc838/turnout.html

common parameters (optional)

Example: https://bl.ocks.org/michalskop/raw/13a7e9f1bdf03b0faa7c0b1d5bcbc838/turnout.html?wheel=1

Pictures:

https://bl.ocks.org/michalskop/raw/13a7e9f1bdf03b0faa7c0b1d5bcbc838/winners.png

https://bl.ocks.org/michalskop/raw/13a7e9f1bdf03b0faa7c0b1d5bcbc838/winners_en.png

https://bl.ocks.org/michalskop/raw/13a7e9f1bdf03b0faa7c0b1d5bcbc838/turnout.png

Analysis flow

  1. file tab06d from https://www.volbysr.sk/sk/download.html cut as source.csv
  2. prepare_data.py -> source_reordered.csv, actors.csv
  3. manually adjust BA and KE in source_reordered.csv
  4. add geocodes geocode.py -> municipalities.csv
  5. adjust actors.csv manually (colors)
  6. adjust index.html and index_en.html
  7. file turnout.csv manually from https://www.volbysr.sk/sk/download.html
  8. adjust tunout.html