Change chart in different file formats