nicva / electionsni Goto Github PK
View Code? Open in Web Editor NEWopen data frameworks, datasets and front-end for elections in northern ireland
Home Page: http://electionsni.org
License: Other
open data frameworks, datasets and front-end for elections in northern ireland
Home Page: http://electionsni.org
License: Other
If 2 candidates have the same Surname in a constituency they overlap (eg 'Murphy' in Newry and Armagh) their rows overlap in the countMatrix display on the results page.
I've tried to modify website/jsonspec/countSpec.json but I can't figure how to use a different method to create the y-axis scale of the matrix (Candidate_Id would be ideal).
@briancleland do you know how?
Visualisations and so on on the website work off json files that are created from the csv files using Python scripts (for example, ResultsJson.json in each of the constituency folders for 2011, and all-candidates.json in the NI folder that tell us about all of the candidates across all constituencies).
At the moment we don't have either a file in the database schema or the collection of json files that tell us who was elected as a result of the count. However, the schema for count.csv (for each constituency) does contain this information (see for e.g. 2011/constituency/belfast-north/Count.csv)
At the last stage of the count a script should be able to determine who was elected (there should be a maximum of 6 for each constituency).
Required: write a Python script to determine who has been elected in each constituency and summarise this in one csv file and one json file.
This should contain information on the candidate, constituency, number of first preference votes received. It may also be possible to add the order (1 to 6) successful candidates in each constituency was elected (note, this is not by the number of FPVs but the order in which they passed the quota).
The branch ae16-live is for development and testing of the site to be pushed out during the live results process once we have some crowdsourced results to populate the graphics etc with.
It will be merged back in to master on 6 May as the first results are due.
Hi Bob,
With your invitation I'd like to join the project for visualising the electoral data and any new boundary review you begin.
I'm not familiar with Javascript though but use Python all the time.
Do you recommend a shell editor to write JS in or can it be implemented in the browser with HTML? ( Apologies if that's a silly question!)
Regards,
John
Some improvements that could be made for the live version. I'll take care of them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.