Giter Site home page Giter Site logo

ammist / opendisclosure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openoakland/opendisclosure

0.0 2.0 0.0 589 KB

We are creating a campaign finance data tool that clearly shows the flow of money into and out of campaigns. We hope to ensure government integrity and transparency in campaign activities by opening up campaign finance data to the public.

Home Page: http://opendisclosure.io/

opendisclosure's Introduction

opendisclosure

Overview

The goal of the project is to produce useful visualizations and statistics for Oakland's campaign finance data, starting with the November 2014 mayoral race.

Meeting notes can be found in this Google Doc.

Technical Details

The raw data can be found on Oakland's "NetFile" site here: http://ssl.netfile.com/pub2/Default.aspx?aid=COAK

Current technology choices to-date:

  • Javascript/HTML/CSS
  • D3.js for visualization
  • Ruby (probably) for backend data acquisition and processing

The raw data needs to be cleaned. A few common problems are:

  • Misspellings
  • Mischaracterized/vague occupation

Development Process

Trying out an "agile" approach, with a basic first version:

  • Clean a sample dataset (for one point in time) using a list of rules we come up with
  • Use cleaned dataset to answer the below 5 key questions
  • Then try to automate the cleaning to the extent possible for automatic updates/dynamic data

5 Key Questions from the Public Ethics Commission

(Click a question to be taken to the GitHub Issue for that question.)

1. Who are the top 5-10 contributors to each campaign? (people or company)

2. Which industries support each candidate? (top 5 industries, aggregate amount given from this industry to each candidate, percentage that this contribution makes in the committee’s entire fundraising efforts for this reporting period)

3. Bar graph showing how much campaign committee has raised so far versus how much that committee has spent in expenditures on the campaign.

4. What percentage of campaign contributions to each mayoral candidate are made from Oakland residents vs. others?

5. Evaluate any overlap between corporations and industries that employ and register a lobbyist with the City of Oakland and campaign contribution and expenditure data.

TABLETOP CODE

Initialize Tabletop

var gsheet = "https://docs.google.com/spreadsheet/pub?key=0AnZDmytGK63SdDVyeE9ONFctMnRSU2VjanhZTUJsN1E&output=html";
	$(document).ready(function(){
			Tabletop.init( { key: gsheet,
		                     callback: setTheScene,
		                     proxy: IF USING PROXY,
		                     wanted: ["SHEETi"], ##can haz multiple sheets
		                     debug: true } );
	});
	
	function setTheScene(data, tabletop){
		$.each( tabletop.sheets("SHEETi").all(), function(i, sheeti) {
			var insertRow = [];
			insertRow[0] = sheeti.columnname; #enter column name here
			ARRAY.push(insertRow); ## push to array of choice
		});
	
	}

opendisclosure's People

Contributors

kleinlieu avatar daguar avatar eddietejeda avatar bayreporta avatar spjika avatar

Watchers

Anca Mosoiu avatar James Cloos 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.