IChartDataPointLevelLabel Property

Represents data label of data point level. Applied for Treemap and Sunburst sereis types. Read-only IDataLabel.

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
IDataLabel Label { get; }

Property Value

Type: IDataLabel
Examples
 using (Presentation pres = new Presentation())
{
    IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.Sunburst, 50, 50, 500, 400);

     IChartSeries series = chart.ChartData.Series[0];

     IChartDataPointLevel dataPointLevel = series.DataPoints[0].DataPointLevels[1];

     dataPointLevel.Label.DataLabelFormat.ShowCategoryName = false;
     dataPointLevel.Label.DataLabelFormat.ShowValue = true;
     dataPointLevel.Label.DataLabelFormat.ShowSeriesName = true;

     dataPointLevel = series.DataPoints[12].DataPointLevels[1];
     dataPointLevel.Label.TextFormat.PortionFormat.FillFormat.FillType = FillType.Solid;
     dataPointLevel.Label.TextFormat.PortionFormat.FillFormat.SolidFillColor.Color = Color.Red;
}
See Also