PieSeriesView.TotalLabel Property
Returns settings that configure the Pie series’ total label.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v21.2.dll
NuGet Package: DevExpress.Charts
Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public PieTotalLabel TotalLabel { get; }
Property Value
Type | Description |
---|---|
PieTotalLabel | The Pie series’ total label settings storage. |
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";
See Also