Auto detect height of chart.