automatic updating of chart