Reading API method (to fetch data for chart)