A newer version of this page is available.
Switch to the current version.
StackedBarTotalLabel Class
The stacked bars' total labels' settings storage.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.2.dll
Declaration
[TypeConverter(typeof(LocalizableExpandableObjectTypeConverter))]
public class StackedBarTotalLabel :
TotalLabel,
ISeriesLabelPropertiesProvider,
ITextPropertiesProvider,
IHitTest,
ISupportTextAntialiasing
<TypeConverter(GetType(LocalizableExpandableObjectTypeConverter))>
Public Class StackedBarTotalLabel
Inherits TotalLabel
Implements ISeriesLabelPropertiesProvider,
ITextPropertiesProvider,
IHitTest,
ISupportTextAntialiasing
Related API Members
The following members accept/return StackedBarTotalLabel objects:
Remarks
The instance of the class configures stacked bars' total labels' appearance and content.
Examples
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}";
Inheritance
Object
ChartElement
TotalLabel
StackedBarTotalLabel
See Also
Feedback