Data Grid and ADG Footers

[UPDATE 26 Jun 2008] - view source is now fully functional

I made some enhancements to the DataGrid footer posted in Alex’s Flex Closet. This supports resizing columns, locked columns, and horizontal scrolling. It is also implemented in both the Data Grid and the Advanced Data Grid. Licensed under MIT (which I believe is the do whatever the hell you want license - commercial, non-commercial, sell it unedited to someone (although that would be morally wrong)).

I haven’t tested these very much. If you find a bug, please comment.

Demo here. The functions that calculate the content of the footers are in the main mxml. Right click to view source.

Obama Wins Nomination!

OK - well that’ll be tonight. Hilary’s bringing in her big supporters to New York. Bill’s said that he won’t be involved in a presidential campaign for while. And Obama needs 43 delegates to win. All signs point to yes. I’ve updated the Election Center. Unfortunately the state by state data is totally screwed up (not sure if it’s me or CNN (probably me)), so I commented out that tab. I’ll try to fix that tonight.

103 Delegates Today

Getting near the end - Oregon and Kentucky hold their primaries today. Looks like Clinton will win Kentucky (51 delegates). Obama will win Oregon (52 delegates). And Clinton will continue to smoke the high grade and think she can somehow win. I updated the election center and added a summary tab. The tab contains two charts: a pie chart showing current totals; and a bar chart showing how many delegates each candidate needs to win. Most telling is Clinton needs to win 72% of the remaining delegates to win.

Election Center Update!

Updated the counts and added some more charts. Not perfect, but, better. Here it is. Also, lots of bugs when you resize!

Mississippi Primary

I’ve finally found a way to blog regularly - update primary data. Mississippi data added to the Election Dashboard.

Election Center Update

It’s worth doing political charts just to have titles like “Election Center Update”. Obama won Wyoming and Mississippi is tomorrow. Anyway, I just added a delegate count comparison page, here.

Election Update

Entered the latest state info from CNN. Again, I can’t figure this data out: Is it wrong? (state totals don’t add up to overall totals) Is it sloppy? (Texas 12 superdelegates, but, 12 to Clinton and 9 to Obama) Well, it’s updated anyway. I changed the colors a bit - don’t love them, but, at least Clinton and Obama colors are consistent.

Also - the source is a mess, but, if anyone’s interested - here’s the xml file adn the xsd. If you make a chart, please send me an email.

Dashboard here.

Election Dashboard

Combination of being annoyed that I couldn’t find the data I wanted on-line and playing around w/ Flex 3 Charting, led to this.

Still very incomplete, but, figured I should post in case Obama wins Texas and no one cares about delegate counts any more.