put date in show chart function