Set chart height before rendering