http://bl.ocks.org/michalskop/raw/8924832fd1aaad06c8d0/municipalities.html?wheel=1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Krajské volby 2016 a 2012</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> | |
<style> | |
.node rect { | |
cursor: move; | |
fill-opacity: .9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="sk"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Zelení + Piráti + Změna 2013</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content="WPCA scatter plot"> | |
<meta name="author" content="Michal Škop"> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootswatch/3.2.0/journal/bootstrap.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
# example of settings for Postgrest API | |
ServerAdmin [email protected] | |
ServerName api.example.com | |
ProxyPreserveHost On | |
# setup the proxy | |
<Proxy *> | |
Order allow,deny | |
Allow from all |
Example Page: https://volebnakalkulacka.sk/match/?q1=1
Explanation: A user may click on name of a party and get the detailed comparison between their answers and the party's answers. Our aim is to engage poeple to see the detailed comparisons.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get all Czech MEPs | |
# importing necessary packages | |
import requests | |
import json | |
import csv | |
# get the data | |
url = "http://api.hlidame.je/rest/hlidame/people?app_name=hlidame" | |
r = requests.get(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''calculate distances''' | |
import csv | |
from random import shuffle | |
import copy | |
#parties | |
def option2numeric_party(v): | |
if v == 'yes': | |
return 1 |
The charts prepared for the article "Measures of Differentiation among Candidates as an Indicator of the Quality of Voting Advice Applications": https://docs.google.com/document/d/1KVTso9cdwvCxhPC3bEp8rAEY_7v3gWvCzHNYVOjcMR8/edit
Includes Wahl-O-Mat (Germany) 2005, 2009, 2013; StemWijzer (Netherlands) 2006, 2010, 2012; and Volební kalkulačka (Czech Republic) 2013
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Chart</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content="Plot"> | |
<meta name="author" content="Michal Škop"> | |
<script src="//cdn.bootcss.com/d3/3.5.6/d3.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>W-PCA Scatterplot Chart</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content="WPCA scatter plot"> | |
<meta name="author" content="Michal Škop"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> |