Hello,
Thanks for sharing more information!
Kindly note that in your chart, you did not set a specific format for the data "38.58", but use the default format of the data label. And the default format actually is using the format of the slide theme, our product cannot get it by DefaultCharacterProperties since this will get a null value.
Please refer to the following code to get the format from the slide theme, and apply it to the middleText.
- Code: Select all
TextRange middleTextRange = new TextRange(" ↑ ");
middleTextRange.LatinFont = chart.Slide.Theme.FontScheme.MajorFont.LatinFont;
middleTextRange.FontHeight = 10;
middleTextRange.Fill.FillType = chart.Slide.Theme.FormatScheme.FillStyles[0].FillType;
middleTextRange.Fill.SolidColor.Color = chart.Slide.Theme.FormatScheme.FillStyles[0].SolidColor.Color;
Sincerely,
Marcia
E-iceblue support team