Now using d3.select methods instead of hard-coding multiple plots.

Not perfect yet; remove doesn't work properly and add hasn't been
tested.