Changing the type of a chart