dynamic resize of charts
fix svg dom arrangement
resize hist when layout changes
remove dead code