sunlightlabs / congress-ios

iOS app for tracking and contacting your legislators, and learning about new bills and laws.
http://congress.sunlightfoundation.com
Other
46 stars 22 forks source link

"Party line" indicator #252

Open jcarbaugh opened 11 years ago

jcarbaugh commented 11 years ago

A visual indicator on list views to show the party breakdown among list items. Useful on yea/nay and co-sponsor lists.

partyline

konklone commented 11 years ago

I sort of think people will want more than this. I've been getting requests for party breakdowns for a while...

dcloud commented 11 years ago

I like where this is going. I think we can afford to use more space to expand on this a bit, as @konklone suggested. Would it be weird to try to do this per line (yay, nay, etc) on the vote detail view?

nickom commented 11 years ago

Love this. I'd definitely vote for doing this per line on the vote detail view, but maybe also have the line linkable to a more detailed breakdown?

On Mon, Jul 15, 2013 at 10:20 AM, Daniel Cloud notifications@github.comwrote:

I like where this is going. I think we can afford to use more space to expand on this a bit, as @konklone https://github.com/konklonesuggested. Would it be weird to try to do this per line (yay, nay, etc) on the vote detail view?

— Reply to this email directly or view it on GitHubhttps://github.com/sunlightlabs/congress-ios/issues/252#issuecomment-20972471 .

dcloud commented 11 years ago

I'm going to put this here: NSCountedSet *partyBreakdown = [[NSCountedSet alloc] initWithArray:[weaklegislatorsTableVC.items valueForKeyPath:@"@unionOfObjects.party"]]