[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Fundamentals
    [Expand]Providing Data
    [Collapse]Chart Elements
     [Expand]Diagram
     [Collapse]Series
       Series Points
       Series Point Labels
      [Expand]Indicators
       Series Titles
       Total Labels
      Panes
     [Expand]Axes
      Legends
      Chart Titles
      Annotations
    [Expand]Appearance Customization
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Expand]Examples
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Total Labels

Total labels display several series points' total value. A Series View type defines which series points are used to calculate the total value: Stacked Bar Total Labels show Stacked Bar series groups' total values; the Pie Total Label displays Pie (Doughnut) series points' total value.

The following sections describe the types of Total Labels:

Expanded Pie Total Label

The Pie Total Label displays the total value of all Pie (Doughnut) series' points.

The table below lists the main properties that affect element appearance and functionality.

Availability

The PieSeries2D.TotalLabel property.

Content

PieTotalLabel.TextPattern, PieTotalLabel.Content

Appearance

PieTotalLabel.ContentTemplate, System.Windows.Controls.Control.Foreground, System.Windows.Controls.Control.FontFamily, System.Windows.Controls.Control.FontStyle, System.Windows.Controls.Control.FontSize, System.Windows.Controls.Control.FontWeight, System.Windows.Controls.Control.FontStretch

The following code demonstrates how to configure the Pie Total Label:

Use the PieSeries2D.TotalLabel property to configure a Pie's total labels.

Expanded Stacked Bar Total Labels

Stacked Bar Total Labels show Stacked Bar series groups' total values.

The following table lists the main properties that affect element appearance and functionality:

Availability

The Pane's BarStackedSeries2D.TotalLabel attached property.

Content

StackedBarTotalLabel.TextPattern

Appearance

ChartTextElement.ElementTemplate, System.Windows.Controls.Control.Foreground, System.Windows.Controls.Control.FontFamily, System.Windows.Controls.Control.FontStyle, System.Windows.Controls.Control.FontSize, System.Windows.Controls.Control.FontWeight, System.Windows.Controls.Control.FontStretch

Layout

XYDiagram2D.LabelsResolveOverlappingMinIndent, StackedBarTotalLabel.ResolveOverlappingMode, StackedBarTotalLabel.Indent

Connector Line

StackedBarTotalLabel.ConnectorVisible, StackedBarTotalLabel.ConnectorThickness,

The example below shows how to modify the Stacked Bar Total Labels.

The Pane class's BarStackedSeries2D.TotalLabel attached property allows you to configure total labels of stacked bars that are in the pane. Note that different panes have different settings for total labels, and it does not apply the same changes to other panes.

Is this topic helpful?​​​​​​​