コード例 #1
0
        public PieChartData GetPieChartDataActiveUsersWithoutMonthAndDay(int projectId, long filterCode)
        {
            var            ageActiveUsers    = this.searchService.GetAgeActiveUsers(projectId, filterCode, true);
            AgeInformation genderInformation = AgeInformation.Create(ageActiveUsers);

            return(this.GetPieChartData(genderInformation));
        }
コード例 #2
0
        public PieChartData GetPieChartDataActiveUsers(int projectId, IList <ActiveUserInfo> usersList)
        {
            var            ageActiveUsers    = this.searchService.GetAgeActiveUsers(projectId, usersList, false);
            AgeInformation genderInformation = AgeInformation.Create(ageActiveUsers);

            return(this.GetPieChartData(genderInformation));
        }
コード例 #3
0
ファイル: MetricsService.cs プロジェクト: Ishitori/Palantir
 public AgeInformation GetAgeInformation(int projectId)
 {
     using (this.unitOfWorkProvider.CreateUnitOfWork())
     {
         CategorialValue categories = this.statisticsProvider.GetAgeInformation(projectId);
         return(AgeInformation.Create(categories));
     }
 }