Nevron .NET Vision
Nevron.Chart Namespace / NSeries Class / TotalValueFormatter Property
Example


In This Topic
    TotalValueFormatter Property
    In This Topic
    Gets or sets a NValueFormatter object controlling the formatting of the total values.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Formatting")>
    <System.ComponentModel.DescriptionAttribute("Controls the total value formatting")>
    <System.ComponentModel.EditorAttribute(Nevron.Editors.NValueFormatterTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)>
    Public Property TotalValueFormatter As NValueFormatter
    'Usage
     
    
    Dim instance As NSeries
    Dim value As NValueFormatter
     
    instance.TotalValueFormatter = value
     
    value = instance.TotalValueFormatter
    [System.ComponentModel.Category("Formatting")]
    [System.ComponentModel.Description("Controls the total value formatting")]
    [System.ComponentModel.Editor(Nevron.Editors.NValueFormatterTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)]
    public NValueFormatter TotalValueFormatter {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.DataLabelStyle.Format = "<percent> of <total>"
    ' format the percent command as percent and the total with 3 decimal places
    pie.PercentValueFormatter = new NNumericValueFormatter(NumericValueFormat.Percentage)
    pie.TotalValueFormatter = new NNumericValueFormatter("0.000")
    pie.DataLabelStyle.Format = "<percent> of <total>";
    // format the percent command as percent and the total with 3 decimal places
    pie.PercentValueFormatter = new NNumericValueFormatter(NumericValueFormat.Percentage);
    pie.TotalValueFormatter = new NNumericValueFormatter("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