Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Collapse]DevExpress.XtraCharts.Web
   [Expand]CallbackStateEventArgs Class
   [Expand]CallbackStateLoadEventArgs Class
    CallbackStateLoadEventHandler Delegate
   [Expand]CallbackStateSaveEventArgs Class
    CallbackStateSaveEventHandler Delegate
   [Expand]ChartClientSideEvents Class
    ChartImagePosition Enumeration
   [Expand]ChartToolTipController Class
   [Expand]CustomCallbackEventArgs Class
    CustomCallbackEventHandler Delegate
    ToolTipOpenMode Enumeration
   [Collapse]WebChartControl Class
     WebChartControl Members
     WebChartControl Constructor
    [Expand]WebChartControl Properties
    [Expand]WebChartControl Events
    [Collapse]WebChartControl Methods
      BeginInit Method
     [Expand]BindToData Method
      ClearSelection Method
      Dispose Method
      EndInit Method
     [Expand]ExportToImage Method
      GetAppearanceNames Method
      GetPaletteEntries Method
      GetPaletteNames Method
      GetSeriesByName Method
      LoadFromFile Method
      LoadFromStream Method
      LoadFromXml Method
      ProcessImageRequest Method
      RefreshData Method
     [Collapse]RegisterSummaryFunction Method
       RegisterSummaryFunction(String, String, Int32, SummaryFunctionArgumentDescription[], SummaryFunction) Method
       RegisterSummaryFunction(String, String, ScaleType, Int32, SummaryFunctionArgumentDescription[], SummaryFunction) Method
      ResetLegendPointOptions Method
      ResetLegendTextPattern Method
      ResetSummaryFunctions Method
      SaveToFile Method
      SaveToStream Method
      SaveToXml Method
      SetObjectSelection Method
      UnregisterSummaryFunction Method
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

WebChartControl.RegisterSummaryFunction(String, String, ScaleType, Int32, SummaryFunctionArgumentDescription[], SummaryFunction) Method

Registers the custom summary function with the specified settings.

Namespace:DevExpress.XtraCharts.Web
Assembly:DevExpress.XtraCharts.v17.1.Web.dll

Expanded Syntax

Parameters

name
Type: String
A System.String value containing the function's name.
displayName
Type: String
A System.String value containing the function's display name, which is used for localization purposes.
resultScaleType
Type: ScaleType
A DevExpress.XtraCharts.ScaleType enumeration value representing the type of the function's result.
resultDimension
Type: Int32
An integer value representing the dimension of the resulting series point's values.
argumentDescriptions
Type: SummaryFunctionArgumentDescription[]
An array of DevExpress.XtraCharts.SummaryFunctionArgumentDescription objects containing argument descriptions.
function
Type: SummaryFunction
A DevExpress.XtraCharts.SummaryFunction delegate to be registered.

Expanded Remarks

The RegisterSummaryFunction method is intended to register custom summary functions within a chart control. To unregister a specific summary function, the UnregisterSummaryFunction method should be called. Also, you may remove all custom summary functions from the chart, and add all default functions to it by calling the ResetSummaryFunctions method.

Expanded Example

Show Me

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

The following example demonstrates how to create a custom summary function, which returns a product of two values (Price * Count). To accomplish this task, it is required to create a summary function delegate and register it using the RegisterSummaryFunction method.

The code below illustrates how this can be done.

Expanded See Also

How would you rate this topic?​​​​​​​