Remove outdated logic of clearing chart dataset