XYDiagramPaneBase.StackedBarTotalLabel Property
Returns the settings of total labels that belong to series groups within the pane.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v19.1.dll
Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public StackedBarTotalLabel StackedBarTotalLabel { get; }
Property Value
Type | Description |
---|---|
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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-show-stacked-bars-total-labels-at-runtime-t556236
StackedBarTotalLabel totalLabel = ((XYDiagram)cartesianChart.Diagram).DefaultPane.StackedBarTotalLabel;
totalLabel.Visible = true;
totalLabel.ShowConnector = true;
totalLabel.TextPattern = "Total:\n{TV:F2}";
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StackedBarTotalLabel property.
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.