Setting an appropriate width for chart