make chart export optional depending if its a plugin or not