Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]Welcome to DevExpress .NET Documentation
[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
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Fundamentals
    [Expand]Providing Data
    [Expand]Appearance Customization
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Collapse]Visual Elements
      Chart Area
      Chart Title
      Diagram
      Panes
      Axis
      Secondary Axis
      Axis Title
      Axis Labels
      Custom Axis Label
      Axis Tickmarks
      Constant Line
      Constant Line Title
      Grid Lines
      Strip
      Series
      Series Point
      Series Point Marker
      Series Point Label
      Series Title
      Legend
      Legend Marker
      Legend Check Box
      Trend Lines
      Regression Lines
      Moving Average and Envelope
      Fibonacci Indicators
      Annotations
      Oscillator Indicators
      Price Indicators
      Error Bars
      Scale Breaks
      Total Labels
    [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]Diagram Control
  [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]Document Server
[Expand]Reporting
[Expand]Report 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:

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T556355.

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.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T556315.

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?​​​​​​​