add update_interval_ to control the time to update the chart