Skip to main content
A newer version of this page is available. .

StackedBarTotalLabel Class

The stacked bars’ total labels’ settings storage.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.1.dll

Declaration

[TypeConverter(typeof(LocalizableExpandableObjectTypeConverter))]
public class StackedBarTotalLabel :
    TotalLabel,
    ISeriesLabelPropertiesProvider,
    ITextPropertiesProvider,
    IHitTest,
    ISupportTextAntialiasing

The following members accept/return StackedBarTotalLabel objects:

Remarks

The instance of the class configures stacked bars’ total labels’ appearance and content.

StackedBarTotalLabel

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.

StackedBarTotalLabel totalLabel = ((XYDiagram)cartesianChart.Diagram).DefaultPane.StackedBarTotalLabel;
totalLabel.Visible = true;
totalLabel.ShowConnector = true;
totalLabel.TextPattern = "Total:\n{TV:F2}";

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StackedBarTotalLabel 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.

Inheritance

Object
ChartElement
TotalLabel
StackedBarTotalLabel
See Also