charttype switch