Update of the dynamism of the chart

Chart now shrink in size if required. Does not only scale up, but down.