chart will dynamically change according to the records added