Sample stacked bar chart
read "ef2015.csv"
extend jahr = 2015
read "ef2019.csv"
extend jahr = 2019
union
read "ef2019.csv"
extend jahr = 2020
union
select kanton == "Zürich"
project partei, jahr, fiktive_waehlende
format fiktive_waehlende "%02d"
deserialize
delegate "barchart -stacks 1,1,0"
print
partei | 2015 | 2019 | 2020 |
---|---|---|---|
BDP | 15497 | 6878 | 6878 |
CVP | 17897 | 18487 | 18487 |
EDU | 8815 | 6753 | 6753 |
EVP | 13335 | 13845 | 13845 |
FDP | 65541 | 57290 | 57290 |
FGA | 00 | 6741 | 6741 |
GLP | 34905 | 58689 | 58689 |
GPS | 29469 | 59035 | 59035 |
PdA/Sol. | 1026 | 1300 | 1300 |
SD | 753 | 782 | 782 |
SP | 91508 | 72590 | 72590 |
SVP | 131246 | 111972 | 111972 |
Übrige | 17772 | 5003 | 5003 |