18 InitializeComponent();
21 public override string Icon {
get; } =
"\uE77B";
26 OnPropertyChanged(nameof(GenderPersonsSeries));
30 public ISeries[] GenderPersonsSeries => _analyticsModule ==
null ? null :
new ISeries[]
34 Values =
new []{ _analyticsModule.MalePersonPercentage },
35 Name = $
"{Core.Properties.EnumsCore.Genders_Male} ({_analyticsModule.MalePersonCount})",
36 Fill = COLORPAINT_MALE,
37 DataLabelsPaint =
new SolidColorPaint(SKColors.Black),
39 DataLabelsPosition = LiveChartsCore.Measure.PolarLabelsPosition.Middle,
40 DataLabelsFormatter = point => point.Coordinate.PrimaryValue == 0 ?
"" : point.Coordinate.PrimaryValue.ToString(
"N1") +
"%",
46 Values =
new[] { _analyticsModule.FemalePersonPercentage },
47 Name = $
"{Core.Properties.EnumsCore.Genders_Female} ({_analyticsModule.FemalePersonCount})",
48 Fill = COLORPAINT_FEMALE,
49 DataLabelsPaint =
new SolidColorPaint(SKColors.Black),
51 DataLabelsPosition = LiveChartsCore.Measure.PolarLabelsPosition.Middle,
52 DataLabelsFormatter = point => point.Coordinate.PrimaryValue == 0 ?
"" : point.Coordinate.PrimaryValue.ToString(
"N1") +
"%",