Is it possible to add a sting into a given data label?
See image.
I'm only interested to know if this is possible or not, not sample code. Just a yes or no would suffice.
Thanks!
Presentation ppt = new Presentation();
ppt.LoadFromFile("ChartSample2.pptx");
IChart Chart = ppt.Slides[0].Shapes[0] as IChart;
ChartDataLabel chartDataLabel = Chart.Series[0].DataLabels.Add();
chartDataLabel.TextFrame.Text = Chart.Series[0].Values[0].Text;
TextParagraph tp = chartDataLabel.TextFrame.TextRange.Paragraph;
TextRange tr = new TextRange(" A");
tr.Fill.FillType = Spire.Presentation.Drawing.FillFormatType.Solid;
tr.Format.Fill.SolidColor.Color = Color.Red;
tr.LatinFont = new TextFont("Times New Roman");
tp.TextRanges.Append(tr);
ppt.SaveToFile("result.pptx", FileFormat.Pptx2010);