More work with the d3 plugin; I'm becoming skeptical that this is the best way to do this.