— Forest and the Trees

Archive
Flex Charting

Really need to start blogging again. Here’s an example using HierarchicalCollectionViewCursor to set the row color of an Advanced DataGrid by depth. Right-click to view source.

Read More

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

Read More

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.

Read More

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.

Read More

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

Read More

I had been working w/ the Flex beta (where you couldn’t get at the source) for so long, I just gave up. But, you can get at the charting component source if you buy Flex Builder Pro. Not open source, but, all I want to do is override methods. (via Pearls of Flex)

Check out this link if you need to extract the source. For 3.0 it seemed to auto-extract. But, for Flex 3.1, I needed to extract.

Also, check this post for the command to type into terminal.

Read More

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

Read More

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.

Read More

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.

Read More

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.

Read More