User:RobLa/Electowidget/2000 U.S. Presidential Election example: Difference between revisions

Directing over to electorama.com
(Directing over to electorama.com)
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1:
See https://wiki.electorama.com/wiki/view/Electowidget/2000_U.S._Presidential_Election_example
This is example data very loosely based on the 2000 U.S. Presidential election, for purposes of demonstrating [[Electowidget]]
 
<electowidget>{
"version":"0.1",
"description":"This is a simplified version of the 2000 election.",
"display_parameters":true,
"display_results":true,
"display_ballots":true,
"election_methods":
[
{
"type":"smith"
},
{
"type":"minmax-wv"
},
{
"type":"minmax-margins"
},
{
"type":"schulze-wv"
},
{
"type":"schulze-margins"
},
{
"type":"schulze-wv-mod"
},
{
"type":"approval"
},
{
"type":"range"
},
{
"type":"instant-runoff"
},
{
"type":"plurality"
},
{
"type":"copeland"
},
{
"type":"dmc"
}
],
"allow_voting":true,
"ballot_type":"barscale",
"max_rating":5,
"count_subpage_ballots":true,
"count_inline_ballots":true,
"candidates":
{
"Bush":
{
"display_name":"George Bush",
"sort_key":"Bush",
"party":"Republican",
"candidate_url":"http://en.wikipedia.org/wiki/George_W._Bush",
"party_url":"http://en.wikipedia.org/wiki/United_States_Republican_Party"
},
"Gore":
{
"display_name":"Al Gore",
"sort_key":"Gore",
"party":"Democrat",
"candidate_url":"http://en.wikipedia.org/wiki/Al_Gore",
"party_url":"http://en.wikipedia.org/wiki/United_States_Democratic_Party"
},
"Nader":
{
"display_name":"Ralph Nader",
"sort_key":"Nader",
"party":"Reform , (Independent)",
"candidate_url":"http://en.wikipedia.org/wiki/Ralph_Nader",
"party_url":"http://en.wikipedia.org/wiki/Ralph_Nader"
}
},
"inline_ballot_type":"range-array",
"inline_ballots":
[
{
"qty":24,
"vote":
{
"Bush":"0",
"Gore":"5",
"Nader":"-1"
}
},
{
"qty":24,
"vote":
{
"Bush":"-1",
"Gore":"5",
"Nader":"0"
}
},
{
"qty":49,
"vote":
{
"Bush":"5",
"Gore":"0",
"Nader":"-1"
}
},
{
"qty":3,
"vote":
{
"Bush":"0",
"Gore":"2",
"Nader":"5"
}
}
]
}</electowidget>[[Category:Electowidget]]