A demo graph in d3 that allows to collapse and expand regions.  Also arraging selections.