introduce function to load data and update chart