Add stackedBarChartDetailView cloud function