PieTotalLabel Class
The pie’s total labels settings storage.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.1.dll
Declaration
[TypeConverter(typeof(LocalizableExpandableObjectTypeConverter))]
public class PieTotalLabel :
TotalLabel
Related API Members
The following members accept/return PieTotalLabel objects:
Remarks
The instance of the class configures pie’s total labels’ appearance and content.
Example
Use the PieSeriesView.TotalLabel property to access settings that configure a Pie (Doughnut) series’ Total Label.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-show-a-pie-series-total-label-t556267
PieTotalLabel totalLabel = ((DoughnutSeriesView)pieChart.Series["Country Areas"].View).TotalLabel;
totalLabel.Visible = true;
totalLabel.TextPattern = "Total area\n{TV:F2} km\xB2";
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PieTotalLabel class.
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.