Back to Devexpress

DataLabelBase.ShowPercent Property

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-datalabelbase-ea60f9b8.md

latest4.0 KB
Original Source

DataLabelBase.ShowPercent Property

Gets or sets a value indicating whether the percentage value should be displayed in a data label on the pie or doughnut chart.

Namespace : DevExpress.Spreadsheet.Charts

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool ShowPercent { get; set; }
vb
Property ShowPercent As Boolean

Property Value

TypeDescription
Boolean

true , to show percentage labels; otherwise, false.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowPercent property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/ChartActions.cs#L46

csharp
dataLabels.ShowCategoryName = true;
dataLabels.ShowPercent = true;
dataLabels.Separator = "\n";

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/Charts.cs#L34

csharp
dataLabels.ShowCategoryName = true;
dataLabels.ShowPercent = true;
dataLabels.Separator = "\n";

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/Charts.cs#L34

csharp
dataLabels.ShowCategoryName = true;
dataLabels.ShowPercent = true;
dataLabels.Separator = "\n";

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/ChartActions.vb#L46

vb
dataLabels.ShowCategoryName = True
dataLabels.ShowPercent = True
dataLabels.Separator = ControlChars.Lf

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/Charts.vb#L38

vb
dataLabels.ShowCategoryName = True
dataLabels.ShowPercent = True
dataLabels.Separator = vbLf

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/Charts.vb#L37

vb
dataLabels.ShowCategoryName = True
dataLabels.ShowPercent = True
dataLabels.Separator = Constants.vbLf

See Also

DataLabelBase Interface

DataLabelBase Members

DevExpress.Spreadsheet.Charts Namespace