Clean chart in different file formats