Adding function for fetching heatMap data