use unload to clear chart