commiting data for chart in the home page