diff --git a/src/PKSim.UI/Views/ProteinExpression/ExpressionDataView.cs b/src/PKSim.UI/Views/ProteinExpression/ExpressionDataView.cs index f0c287345..298492517 100644 --- a/src/PKSim.UI/Views/ProteinExpression/ExpressionDataView.cs +++ b/src/PKSim.UI/Views/ProteinExpression/ExpressionDataView.cs @@ -705,15 +705,15 @@ private void configChart(string titleText) // Count var argument2Description = new SummaryFunctionArgumentDescription("Count", ScaleType.Numerical); - + // Register the summary function in chart. const string STR_CUSTOM_SUMMARY_FUNCTION_NAME = "WeightedAverage"; const string STR_CUSTOM_SUMMARY_FUNCTION_DISPLAY_NAME = "WeightedAverage"; chart.RegisterSummaryFunction(STR_CUSTOM_SUMMARY_FUNCTION_NAME, STR_CUSTOM_SUMMARY_FUNCTION_DISPLAY_NAME, 1, new[] {argument1Description, argument2Description}, customSummary); - - chart.SeriesTemplate.NumericSummaryOptions.SummaryFunction = + + chart.SeriesTemplate.QualitativeSummaryOptions.SummaryFunction = $"{STR_CUSTOM_SUMMARY_FUNCTION_NAME}([{_fieldNormValue.FieldName + "_" + _fieldNormValue.SummaryType}],[{_fieldNormValue2.FieldName + "_" + _fieldNormValue2.SummaryType}])"; //config layout