Code Monkey home page Code Monkey logo

electionsni's People

Contributors

bobharper1 avatar briancleland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

electionsni's Issues

Interface improvements

Some improvements that could be made for the live version. I'll take care of them.

  • Hidden menu on mobile with dropdown to shown options
  • Shadowed text on transfers animation (so white text on white background can be seen)
  • Tooltips - check they work on touch screen (sometimes they don't unbind... small problem, small problem)
  • Need abbreviations and colours for the AE16 parties which weren't standing in AE11 in any script or json that doesn't have them (transfers.js for instance)

Branch: ae16-live

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.

countMatrix

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?

Joining the project

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

Needed: Elected

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.