Back to Devexpress

XYDiagramPaneBase.StackedBarTotalLabel Property

corelibraries-devexpress-dot-xtracharts-dot-xydiagrampanebase-485e5cdc.md

latest2.2 KB
Original Source

XYDiagramPaneBase.StackedBarTotalLabel Property

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

Declaration

csharp
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public StackedBarTotalLabel StackedBarTotalLabel { get; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Elements)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property StackedBarTotalLabel As StackedBarTotalLabel

Property Value

TypeDescription
StackedBarTotalLabel

The total labels’ settings storage.

|

Example

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.

csharp
StackedBarTotalLabel totalLabel = ((XYDiagram)cartesianChart.Diagram).DefaultPane.StackedBarTotalLabel;
totalLabel.Visible = true;
totalLabel.ShowConnector = true;
totalLabel.TextPattern = "Total:\n{TV:F2}";
vb
Dim totalLabel As StackedBarTotalLabel = CType(cartesianChart.Diagram, XYDiagram).DefaultPane.StackedBarTotalLabel
totalLabel.Visible = True
totalLabel.ShowConnector = True
totalLabel.TextPattern = "Total:" & vbLf & "{TV:F2}"

See Also

XYDiagramPaneBase Class

XYDiagramPaneBase Members

DevExpress.XtraCharts Namespace