Use d3.map in NewStylePlot. Also clean up some other code slightly [type-d3-map-set]

Maybe consider grouping the instance variables (might provide us with cleaner code in the long run).  I am personally a fan of
public
protected
private