change to the every beginning of a minute to fetch data and update chart dynamically