Screwing around with functions. Trying to be smart about when to build the drop-down, but failing. Can I put the whole thing in a function and call it from doTheD3? Would I need to pass arguments? Persistence of variables is a problem here.
Whitespace cleanup.
Well, it's back to working again. I mean, the graph shows up. The drop-down doesn't do a damn thing, though.
Turning layout piece into a function.
Breaking out the pieces that draw the axes.
Hung up on data closures. How come my "doTheLegend" call in line 261 works if I use color.domain in an alert in line 260, but it fails if I don't.