change chart types on the fly