Based on the example given for creating a chart from scratch, I have the following code
foreach (var series in chart.ChartData.Series)
{
foreach (var dataPoint in series.DataPoints)
{
var lbl = dataPoint.Label;
lbl.DataLabelFormat.ShowValue = true;
lbl.DataLabelFormat.Position = LegendDataLabelPosition.InsideEnd;
lbl.TextFormat.PortionFormat.FontHeight = 10;
lbl.TextFormat.PortionFormat.FillFormat.SolidFillColor.Color = Color.White;
}
}
However, it doesn’t seem to work. Is it possible to set the label colour and format from code like this?
Previously using v8 of Aspose.Slides, I was able to set the font size using the “TextProperities” of the label to access the default portion format of the first paragraph in the label, but this approach is no longer possible in v14.2.