Consolidated calculateDrawingSizes for Line and Bar