GithubHelp home page GithubHelp logo

imclab / toetheline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dharmafly/toetheline

0.0 1.0 0.0 3.21 MB

An interactive data visualisation of the most rebellious MPs in the UK Parliament.

Home Page: http://toetheline.org.uk

toetheline's Introduction

Toe The Line

โ˜ž toetheline.org.uk

Who are the most rebellious MPs across different policy areas?
Who toes the line?

screenshot

What is it?

This interactive data visualisation is a prototype for showing which MPs have rebelled against their own party line in voting for a particular bill. We've shown the bills categorised as "policies" - e.g. "Terrorism Laws" - and shown which are the top rebels for bills in those categories. The most rebellious MPs are shown above the thick red line, with the least rebellious below the line. The policy being displayed can be changed by clicking the pointing hands.

It is left up to the viewer to decide if these rebels are seen as "free-thinkers" or "trouble-makers".

Created in 1ยฝ days

By Premasagar Rose, Peter Cook and Chris James.

Created for Rewired State's Parliament Hack 2012 hack weekend.

We won the award for making Parliament more transparent.

"Toe the Line"

In the House of Commons, there is a thick red line on the floor by both the government's and the opposition benches. The lines are supposedly two sword-lengths apart, and all members are expected to keep behind their line, to keep order and prevent physical attacks between opposing members.

Where next with the app?

Other than generally improving the look and experience of using the tool, we would have loved to include some engagement mechanism where a person could enter, say, a postcode to display his or her own MP and see whether the MP sticks their neck out on certain issues or stays close to the party and, therefore, whether the MP truly represents the views of their constituent. We'd then like to integrate easy ways for the viewer to contact their MP to communicate their views.

Would also like to include:

  • Contextual information about each MP, their voting record and their constituency.
  • Other indicators of "free-thinking", such as which MPs introduce their own new bills to Parliament.
  • Information about which rebellions were made in the face of three-line whips or other measures (this particular data is not made public at present).

The data

We have primarily used voting data made available on Public Whip, in addition to some MP data from They Work For You.

Technical

While both Public Whip and They Work For You offer data downloads and APIs, the particular groupings of bills and votes that we needed meant that we needed to resort to "scraping" - i.e. plucking bits of data straight out of the web pages.

We used a homegrown Node.js scraper module called Noodle to compile the data set from many hundreds of separate web pages. The compiled data set (collected on 25th November, 2012) is available in our open source repository. The repository itself can be copied and improved.

Thank you, Public Whip and They Work For You.

toetheline's People

Contributors

premasagar avatar

Watchers

 avatar

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.