Improvements to transitions, resizing and layouts

Some refactoring to support better behavior when resizing and updating data.
Improved transitions for chart elements where simple transitions work.