block by michalskop 13a7e9f1bdf03b0faa7c0b1d5bcbc838

SK: Regional Elections 2017

Full Screen

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

actors.csv

ba2016.csv

ba_reordered.csv

d3.tip.js

geocodes.py

ke2016.csv

ke_reordered.csv

prepare_data.py

prepare_data_bb.py