[]
Gets or sets whether the percentage value is displayed in the data label.
If this setting is not defined directly on the data label, the value can be inherited from its parent label settings.
bool ShowPercentage { get; set; }
Property ShowPercentage As Boolean
worksheet.Range["A1:B4"].Value = new object[,] {
{"Category", "Value"},
{"A", 10},
{"B", 20},
{"C", 30}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Pie, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IDataLabel dataLabel = chart.SeriesCollection[0].Points[0].DataLabel;
bool showPercentage = dataLabel.ShowPercentage;