Charts: Allow switching chart types without reset, fix resizing