corelibraries-devexpress-dot-xtracharts-dot-xydiagrampanebase-485e5cdc.md
Returns the settings of total labels that belong to series groups within the pane.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public StackedBarTotalLabel StackedBarTotalLabel { get; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Elements)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property StackedBarTotalLabel As StackedBarTotalLabel
| Type | Description |
|---|---|
| StackedBarTotalLabel |
The total labels’ settings storage.
|
The XYDiagramPaneBase.StackedBarTotalLabel property allows you to configure total labels of stacked bars that are in the pane. Note that Total labels’ settings are not shared between Panes. Thus, you can configure Total Labels that are on various panes differently.
StackedBarTotalLabel totalLabel = ((XYDiagram)cartesianChart.Diagram).DefaultPane.StackedBarTotalLabel;
totalLabel.Visible = true;
totalLabel.ShowConnector = true;
totalLabel.TextPattern = "Total:\n{TV:F2}";
Dim totalLabel As StackedBarTotalLabel = CType(cartesianChart.Diagram, XYDiagram).DefaultPane.StackedBarTotalLabel
totalLabel.Visible = True
totalLabel.ShowConnector = True
totalLabel.TextPattern = "Total:" & vbLf & "{TV:F2}"
See Also