Xceed Chart for WinForms v4.4 Documentation
TotalValueFormatting Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Series Class : TotalValueFormatting Property
Gives you access to the ValueFormatting object controlling the formatting of the total formatting command.
Syntax
'Declaration
 
<CategoryAttribute("Formatting")>
<DescriptionAttribute("Controls the total value format")>
Public Property TotalValueFormatting As ValueFormatting
'Usage
 
Dim instance As Series
Dim value As ValueFormatting
 
instance.TotalValueFormatting = value
 
value = instance.TotalValueFormatting
[Category("Formatting")]
[Description("Controls the total value format")]
public ValueFormatting TotalValueFormatting {get; set;}
Remarks
The total value formatting command is represented in the formatting strings as <total>. It represents the total sum of the values contained in the Values data series.
Example
The following code displays the pie data labels in the following format: (percent) of (total).
pie.DataLabels.Format = "&lt;percent&gt; of &lt;total&gt;"
' format the percent command as percent and the total with 3 decimal places
pie.PercentValueFormat.Format = ValueFormat.Percentage
pie.TotalValueFormat.Format = ValueFormat.Custom
pie.TotalValueFormat.CustomFormat = "0.000"
pie.DataLabels.Format = "&lt;percent&gt; of &lt;total&gt;";
// format the percent command as percent and the total with 3 decimal places
pie.PercentValueFormat.Format = ValueFormat.Percentage;
pie.TotalValueFormat.Format = ValueFormat.Custom;
pie.TotalValueFormat.CustomFormat = "0.000";
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Series Class
Series Members
ValueFormatting Class