externalize chart