This question is locked. New answers and comments are not allowed.
I have the below code. I am trying to format the series label so that it sums all the values of that series. I know that the below code snippet labelDefinition.Format = "#Sum"; doesn't work. Can you recommend something?
BarSeries ser = new BarSeries(); ser.ValueBinding = new PropertyNameDataPointBinding("IRBDuration"); ser.CategoryBinding = new PropertyNameDataPointBinding("EndYear"); ser.CombineMode = Telerik.Charting.ChartSeriesCombineMode.Stack; ser.ShowLabels = true; ChartSeriesLabelDefinition labelDefinition = new ChartSeriesLabelDefinition(); labelDefinition.Binding = new PropertyNameDataPointBinding("IRBDuration"); labelDefinition.VerticalAlignment = System.Windows.VerticalAlignment.Center; labelDefinition.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; labelDefinition.Format = "#SUM"; ser.LabelDefinitions.Add(labelDefinition); chart.Series.Add(ser); ser.ItemsSource = _context.Protocols;