Take a more OO approach to handling the d3 data

I can't see where this is using ``MenuItem``?