switch dimension for chart