Only resize the chart if it can determine the new container dimensions