private PieChartData GetEducationPieChartData(EducationLevelInformation data)
        {
            var pieChartData = new PieChartData();

            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Не указано", Value = data.Unknown
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Среднее", Value = data.Middle
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Неоконченное высшее", Value = data.UncompletedHigher
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Высшее", Value = data.Higher
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Доктор наук", Value = data.PhD
            });

            return(pieChartData);
        }
示例#2
0
        private PieChartData GetPieChartData(AgeInformation ageInformation)
        {
            PieChartData pieChartData = new PieChartData();

            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "< 14 лет", Value = ageInformation.Below14
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "15-24 года", Value = ageInformation.Upper15Below24
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "25-34 года", Value = ageInformation.Upper25Below34
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "35-44 года", Value = ageInformation.Upper35Below44
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "45-54 года", Value = ageInformation.Upper45Below54
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "> 55 лет", Value = ageInformation.Upper55
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Не указано", Value = ageInformation.Unknown
            });

            return(pieChartData);
        }
示例#3
0
        private PieChartData GetPieChartData(GenderInformation genderInformation)
        {
            PieChartData pieChartData = new PieChartData();

            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Мужчины", Value = genderInformation.Males
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Женщины", Value = genderInformation.Females
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Не указано", Value = genderInformation.Unknown
            });

            return(pieChartData);
        }
示例#4
0
        private PieChartData GetTypeOfContentPieChartData(TypeOfContentDataInfo data)
        {
            var pieChartData = new PieChartData();

            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Тексты", Value = data.Text
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Фотографии", Value = data.Photo
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Видео", Value = data.Video
            });

            return(pieChartData);
        }
示例#5
0
        private PieChartData LikesRepostCommentDiagramData(LRCDiagramDataInfo data)
        {
            var pieChartData = new PieChartData();

            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Комментарии", Value = data.Comments
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Лайки", Value = data.Likes
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Репосты", Value = data.Reposts
            });
            pieChartData.AddItem(new PieChartDataItem()
            {
                Label = "Посты", Value = data.Posts
            });

            return(pieChartData);
        }