Bugzilla#454310 
Added support of auto resize to fit container after creating chart.
Extra transaction "Resize Chart" will be seen when undo.

The new chart's width is the container's width, and the height is
max(default height, min(container height, container width / 2).